{"id":554,"date":"2023-10-23T20:34:49","date_gmt":"2023-10-23T20:34:49","guid":{"rendered":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/"},"modified":"2023-12-10T11:47:11","modified_gmt":"2023-12-10T11:47:11","slug":"%e8%b6%85%e7%bb%91%e5%ae%9a","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528vba ubound\u51fd\u6570\uff1f"},"content":{"rendered":"<div class=\"excel-\" id=\"excel-3608242124\"><script type=\"text\/javascript\">\r\n\tatOptions = {\r\n\t\t'key' : 'c1158f160081d6540a8409e6925dab94',\r\n\t\t'format' : 'iframe',\r\n\t\t'height' : 250,\r\n\t\t'width' : 300,\r\n\t\t'params' : {}\r\n\t};\r\n<\/script>\r\n<script type=\"text\/javascript\" src=\"\/\/www.highperformanceformat.com\/c1158f160081d6540a8409e6925dab94\/invoke.js\"><\/script><\/div> <p>VBA UBOUND \u51fd\u6570\u5217\u5728 VBA \u51fd\u6570\u8868\u7c7b\u522b\u4e2d\u3002\u5f53\u60a8\u5728 VBA \u4ee3\u7801\u4e2d\u4f7f\u7528\u5b83\u65f6\uff0c<strong><span style=\"color: #000000;\">\u5b83\u53ef\u4ee5\u8fd4\u56de\u6240\u63d0\u4f9b\u6570\u7ec4\u4e2d\u67d0\u4e2a\u7ef4\u5ea6\u7684\u6700\u9ad8\u7d22\u5f15<\/span><\/strong>\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u627e\u5230\u6570\u7ec4\u7684\u4e0a\u9650\uff0c\u8fd4\u56de\u7ed3\u679c\u4e2d\u7684\u6700\u9ad8\u503c\u3002<\/p><h2 class=\"wp-block-heading\">\u53e5\u6cd5<\/h2><p><strong>UBound(\u6570\u7ec4\u540d\u79f0, [\u7ef4\u5ea6])<\/strong><\/p><h2 class=\"wp-block-heading\">\u8bba\u70b9<\/h2><ul><li><strong>ArrayName<\/strong> \uff1a\u8981\u67e5\u627e\u6700\u9ad8\u7d22\u5f15\u7684\u6570\u7ec4\u3002<\/li><li> <strong>[Dimension]<\/strong> \uff1a\u5b9a\u4e49\u6570\u7ec4\u7ef4\u5ea6\u7684\u6574\u6570\uff08\u8fd9\u662f\u4e00\u4e2a\u53ef\u9009\u53c2\u6570\uff0c\u5982\u679c\u7701\u7565\uff0cVBA \u9ed8\u8ba4\u503c\u4e3a 1\uff09\u3002<\/li><\/ul><h2 class=\"wp-block-heading\">\u4f8b\u5b50<\/h2><p>\u8981\u5b9e\u9645\u4e86\u89e3\u5982\u4f55\u4f7f\u7528 VBA UBOUND \u51fd\u6570\uff0c\u60a8\u9700\u8981\u67e5\u770b\u4e0b\u9762\u7684\u793a\u4f8b\uff0c\u5176\u4e2d\u6211\u4eec\u4f7f\u7528\u5b83\u7f16\u5199\u4e86 vba \u4ee3\u7801\uff1a <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" title=\"\u793a\u4f8b-vba-ubound-\u51fd\u6570\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png\" sizes=\"auto, \" srcset=\"\" alt=\"example-vba-ubound-function\" width=\"834\" height=\"487\"><\/figure><\/div><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Sub example_UBOUND() Dim myAry(0 To 1100) As Double Range(\"A1\").Value = UBound(myAry, 1) End Sub<\/code><\/pre><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 UBOUND \u4ece\u6570\u7ec4\u201cmyAry\u201d\u4e2d\u83b7\u53d6\u7ef4\u5ea6\u7684\u6700\u9ad8\u7d22\u5f15\uff0c\u7ed3\u679c\u8fd4\u56de 1100\uff0c\u8fd9\u662f 0 \u5230 1100 \u4e4b\u95f4\u7684\u6700\u5927\u503c\u3002<\/p><div class=\"gb-container gb-container-078e99df gb-container-mt\"> <a class=\"gb-button gb-button-b61bc159 gb-button-text gb-button-mt-button\" href=\"https:\/\/exceladvisor.org\/cn\/\u7ef4\u5df4\/\">\u4ec0\u4e48\u662fVBA<\/a><h2 class=\"gb-headline gb-headline-eb94b2aa gb-headline-text gb-headline-mt-heading\">\u76f8\u5173<a href=\"https:\/\/exceladvisor.org\/cn\/\u529f\u80fd\/\">VBA \u51fd\u6570<\/a><\/h2><div class=\"gb-grid-wrapper gb-grid-wrapper-bea82d60 gb-grid-wrapper-mt-grid\"><div class=\"gb-grid-column gb-grid-column-98a91fbb\"><div class=\"gb-container gb-container-98a91fbb\"><ul><li> <a href=\"https:\/\/exceladvisor.org\/cn\/\u90e8\u7f72\/\">VBA\u8868<\/a><\/li><li><a href=\"https:\/\/exceladvisor.org\/cn\/\u7b5b\u9009\/\">VBA\u8fc7\u6ee4\u5668<\/a><\/li><li><a href=\"https:\/\/exceladvisor.org\/cn\/\u52a0\u5165\/\">\u52a0\u5165VBA<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/cn\/\u7ed1\u5b9a\/\">VBA \u7ed1\u5b9a<\/a><\/li><\/ul><\/div><\/div><div class=\"gb-grid-column gb-grid-column-3151f7cb\"><div class=\"gb-container gb-container-3151f7cb\"><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"ub_ctt_via":"","footnotes":""},"class_list":["post-554","page","type-page","status-publish","hentry"],"featured_image_src":null,"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u4f7f\u7528VBA UBOUND\u51fd\u6570\uff1f \uff08\u8bed\u6cd5+\u793a\u4f8b\uff09<\/title>\n<meta name=\"description\" content=\"\u4e86\u89e3\u5982\u4f55\u901a\u8fc7\u8bed\u6cd5\u3001\u53c2\u6570\u548c\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528 VBA UBOUND \u51fd\u6570\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/exceladvisor.org\/cn\/\u8d85\u7ed1\u5b9a\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528VBA UBOUND\u51fd\u6570\uff1f \uff08\u8bed\u6cd5+\u793a\u4f8b\uff09\" \/>\n<meta property=\"og:description\" content=\"\u4e86\u89e3\u5982\u4f55\u901a\u8fc7\u8bed\u6cd5\u3001\u53c2\u6570\u548c\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528 VBA UBOUND \u51fd\u6570\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/cn\/\u8d85\u7ed1\u5b9a\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-10T11:47:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/\",\"url\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/\",\"name\":\"\u5982\u4f55\u4f7f\u7528VBA UBOUND\u51fd\u6570\uff1f \uff08\u8bed\u6cd5+\u793a\u4f8b\uff09\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png\",\"datePublished\":\"2023-10-23T20:34:49+00:00\",\"dateModified\":\"2023-12-10T11:47:11+00:00\",\"description\":\"\u4e86\u89e3\u5982\u4f55\u901a\u8fc7\u8bed\u6cd5\u3001\u53c2\u6570\u548c\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528 VBA UBOUND \u51fd\u6570\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#primaryimage\",\"url\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/exceladvisor.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4f7f\u7528vba ubound\u51fd\u6570\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/#website\",\"url\":\"https:\/\/exceladvisor.org\/cn\/\",\"name\":\"Excel Advisor\",\"description\":\"\u60a8\u7684\u6570\u636e\u7edf\u6cbb\u7ec8\u6781\u6307\u5357\",\"publisher\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/exceladvisor.org\/cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/#organization\",\"name\":\"Excel Advisor\",\"url\":\"https:\/\/exceladvisor.org\/cn\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/exceladvisor.org\/cn\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/cn\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png\",\"width\":105,\"height\":36,\"caption\":\"Excel Advisor\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u4f7f\u7528VBA UBOUND\u51fd\u6570\uff1f \uff08\u8bed\u6cd5+\u793a\u4f8b\uff09","description":"\u4e86\u89e3\u5982\u4f55\u901a\u8fc7\u8bed\u6cd5\u3001\u53c2\u6570\u548c\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528 VBA UBOUND \u51fd\u6570\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/exceladvisor.org\/cn\/\u8d85\u7ed1\u5b9a\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4f7f\u7528VBA UBOUND\u51fd\u6570\uff1f \uff08\u8bed\u6cd5+\u793a\u4f8b\uff09","og_description":"\u4e86\u89e3\u5982\u4f55\u901a\u8fc7\u8bed\u6cd5\u3001\u53c2\u6570\u548c\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528 VBA UBOUND \u51fd\u6570\u3002","og_url":"https:\/\/exceladvisor.org\/cn\/\u8d85\u7ed1\u5b9a\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-10T11:47:11+00:00","og_image":[{"url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/","url":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/","name":"\u5982\u4f55\u4f7f\u7528VBA UBOUND\u51fd\u6570\uff1f \uff08\u8bed\u6cd5+\u793a\u4f8b\uff09","isPartOf":{"@id":"https:\/\/exceladvisor.org\/cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#primaryimage"},"image":{"@id":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#primaryimage"},"thumbnailUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png","datePublished":"2023-10-23T20:34:49+00:00","dateModified":"2023-12-10T11:47:11+00:00","description":"\u4e86\u89e3\u5982\u4f55\u901a\u8fc7\u8bed\u6cd5\u3001\u53c2\u6570\u548c\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528 VBA UBOUND \u51fd\u6570\u3002","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#primaryimage","url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png","contentUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/exemple-de-fonction-vba-ubound.png"},{"@type":"BreadcrumbList","@id":"https:\/\/exceladvisor.org\/cn\/%e8%b6%85%e7%bb%91%e5%ae%9a\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/exceladvisor.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528vba ubound\u51fd\u6570\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/exceladvisor.org\/cn\/#website","url":"https:\/\/exceladvisor.org\/cn\/","name":"Excel Advisor","description":"\u60a8\u7684\u6570\u636e\u7edf\u6cbb\u7ec8\u6781\u6307\u5357","publisher":{"@id":"https:\/\/exceladvisor.org\/cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/exceladvisor.org\/cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/exceladvisor.org\/cn\/#organization","name":"Excel Advisor","url":"https:\/\/exceladvisor.org\/cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/exceladvisor.org\/cn\/#\/schema\/logo\/image\/","url":"https:\/\/exceladvisor.org\/cn\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png","contentUrl":"https:\/\/exceladvisor.org\/cn\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png","width":105,"height":36,"caption":"Excel Advisor"},"image":{"@id":"https:\/\/exceladvisor.org\/cn\/#\/schema\/logo\/image\/"}}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/pages\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":1,"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/pages\/554\/revisions"}],"predecessor-version":[{"id":1040,"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/pages\/554\/revisions\/1040"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/media?parent=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}