{"id":672,"date":"2023-09-28T21:42:37","date_gmt":"2023-09-28T21:42:37","guid":{"rendered":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/"},"modified":"2023-12-10T11:47:16","modified_gmt":"2023-12-10T11:47:16","slug":"%e6%af%94%e8%b5%9b2","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528vba\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f"},"content":{"rendered":"<div class=\"excel-\" id=\"excel-1948275501\"><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 \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\u51fd\u6570\u3002\u4f46\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u79cd\u65b9\u6cd5\u6765\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\u3002\u5728 VBA \u4e2d\uff0c\u6709<a href=\"https:\/\/exceladvisor.org\/cn\/\u7535\u5b50\u8868\u683c\u529f\u80fd\/\">\u4e00\u4e2a WorksheetFunction \u5c5e\u6027<\/a>\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u8bbf\u95ee\u5de5\u4f5c\u8868\u51fd\u6570\u4ee5\u5728\u5b8f\u4e2d\u4f7f\u7528\u3002<\/p><h2 class=\"wp-block-heading\">\u5728 VBA \u4e2d\u4f7f\u7528\u5339\u914d<\/h2><p>\u6b63\u5982\u6211\u6240\u8bf4\uff0c\u6211\u4eec\u5c06\u5728\u5b8f\u4e2d\u4f7f\u7528\u7535\u5b50\u8868\u683c\u51fd\u6570\uff0c\u4f46\u662f\u5f53\u60a8\u6b63\u786e\u4f7f\u7528\u7535\u5b50\u8868\u683c\u51fd\u6570\u65f6\uff0c\u60a8\u9700\u8981\u6ce8\u610f\u4e00\u4ef6\u4e8b\uff0c\u5b83\u4e0d\u4f1a\u5411\u60a8\u663e\u793a\u51fd\u6570\u4e2d\u53c2\u6570\u7684\u540d\u79f0\uff0c\u56e0\u6b64\u786e\u4fdd\u68c0\u67e5\u6211\u4eec\u9700\u8981\u5728\u5339\u914d\u4e2d\u6307\u5b9a\u7684\u6240\u6709\u53c2\u6570\u3002\u4ee5\u4e0b\u662f\u62cd\u6444\u6837\u5f20\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u3002 <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-62175\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png\" sizes=\"auto, \" srcset=\"\" alt=\"VBA \u4e2d\u7684\u5339\u914d\u51fd\u6570\" width=\"516\" height=\"155\"><\/figure><\/div><p>\u8fd9\u662f\u6211\u4eec\u6709\u4e00\u4e2a\u968f\u673a\u6570\u5217\u8868\u7684\u793a\u4f8b\uff0c\u60a8\u9700\u8981\u5339\u914d\u6570\u5b57\u201c943\u201d\u3002 <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-62176\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/2-numeros-aleatoires.png\" sizes=\"auto, \" srcset=\"\" alt=\"\u968f\u673a\u6570\" width=\"171\" height=\"236\"><\/figure><\/div><p>\u73b0\u5728\u6253\u5f00<a href=\"https:\/\/exceladvisor.org\/cn\/\u57fa\u672c\u53ef\u89c6\u5316\u7f16\u8f91\u5668\/\">Visual Basic \u7f16\u8f91\u5668<\/a>\uff0c\u63d2\u5165\u4e00\u4e2a\u65b0<a href=\"https:\/\/exceladvisor.org\/cn\/\u6a21\u5757\/\">\u6a21\u5757<\/a>\u5e76\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\u3002<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Range(\"B1\") = WorksheetFunction.Match(943, Range(\"A:A\"), 0)<\/code><\/pre><ol type=\"1\"><li>\u8f93\u5165\u5de5\u4f5c\u8868\u5c5e\u6027\u5e76\u952e\u5165\u4e00\u4e2a\u70b9\u4ee5\u83b7\u53d6\u51fd\u6570\u5217\u8868\u3002<\/li><li>\u9009\u62e9\u5339\u914d\u529f\u80fd\u6216\u8005\u60a8\u4e5f\u53ef\u4ee5\u8f93\u5165\u5b83\u3002<\/li><li>\u952e\u5165\u5de6\u62ec\u53f7\u6765\u6307\u5b9a\u53c2\u6570\u3002<\/li><li>\u5728\u53c2\u6570\u4e2d\uff0c\u60a8\u5fc5\u987b\u6307\u5b9a\u8981\u641c\u7d22\u7684\u503c\u3001\u8981\u68c0\u67e5\u7684\u8303\u56f4\u4ee5\u53ca\u5339\u914d\u7c7b\u578b\u3002<\/li><li>\u6700\u540e\uff0c\u4f7f\u7528\u5355\u5143\u683c\u5f15\u7528\u6765\u83b7\u53d6\u51fd\u6570\u7ed3\u679c\u3002 <\/li><\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-62177\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/3-vba-pour-la-fonction-match.png\" sizes=\"auto, \" srcset=\"\" alt=\"VBA \u5339\u914d\u51fd\u6570\" width=\"672\" height=\"444\"><\/figure><\/div><div class=\"gb-container gb-container-4db6181c gb-container-mt\"> <a class=\"gb-button gb-button-c5897111 gb-button-text gb-button-mt-button\" href=\"https:\/\/exceladvisor.org\/cn\/\u7ef4\u5df4\/\">\u4ec0\u4e48\u662fVBA<\/a><h2 class=\"gb-headline gb-headline-665e5f6b gb-headline-text gb-headline-mt-heading\">\u76f8\u5173\u6559\u7a0b<\/h2><div class=\"gb-grid-wrapper gb-grid-wrapper-a20baf7c gb-grid-wrapper-mt-grid\"><div class=\"gb-grid-column gb-grid-column-65ddf67e\"><div class=\"gb-container gb-container-65ddf67e\"><ul><li><a href=\"https:\/\/exceladvisor.org\/cn\/\u5e73\u5747-2\/\">\u4f7f\u7528 VBA \u5728 Excel \u4e2d\u6c42\u5e73\u5747\u503c<\/a><\/li><li><a href=\"https:\/\/exceladvisor.org\/cn\/\u4eca\u5929\u7684\u65e5\u671f\u5f53\u524d\u65f6\u95f4\/\">\u4f7f\u7528 VBA \u83b7\u53d6\u4eca\u5929\u7684\u65e5\u671f\u548c\u5f53\u524d\u65f6\u95f4<\/a><\/li><li><a href=\"https:\/\/exceladvisor.org\/cn\/\u603b\u548c-1\/\">\u4f7f\u7528 VBA \u5728 Excel \u4e2d\u6c42\u548c\u503c<\/a><\/li><li><a href=\"https:\/\/exceladvisor.org\/cn\/\u6a21\u5f0f1\/\">VBA \u4e2d\u7684 MOD<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/cn\/\u7535\u5b50\u8868\u683c\u529f\u80fd\/\">VBA\u7535\u5b50\u8868\u683c\u51fd\u6570<\/a><\/li><\/ul><\/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-672","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\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f<\/title>\n<meta name=\"description\" content=\"VBA \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\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\/\u6bd4\u8d5b2\/\" \/>\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\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f\" \/>\n<meta property=\"og:description\" content=\"VBA \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\u51fd\u6570\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/cn\/\u6bd4\u8d5b2\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-10T11:47:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.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\/%e6%af%94%e8%b5%9b2\/\",\"url\":\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/\",\"name\":\"\u5982\u4f55\u4f7f\u7528VBA\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png\",\"datePublished\":\"2023-09-28T21:42:37+00:00\",\"dateModified\":\"2023-12-10T11:47:16+00:00\",\"description\":\"VBA \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\u51fd\u6570\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#primaryimage\",\"url\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/exceladvisor.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4f7f\u7528vba\u4e2d\u7684\u5339\u914d\u529f\u80fd\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\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f","description":"VBA \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\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\/\u6bd4\u8d5b2\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4f7f\u7528VBA\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f","og_description":"VBA \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\u51fd\u6570\u3002","og_url":"https:\/\/exceladvisor.org\/cn\/\u6bd4\u8d5b2\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-10T11:47:16+00:00","og_image":[{"url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/","url":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/","name":"\u5982\u4f55\u4f7f\u7528VBA\u4e2d\u7684\u5339\u914d\u529f\u80fd\uff1f","isPartOf":{"@id":"https:\/\/exceladvisor.org\/cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#primaryimage"},"image":{"@id":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#primaryimage"},"thumbnailUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png","datePublished":"2023-09-28T21:42:37+00:00","dateModified":"2023-12-10T11:47:16+00:00","description":"VBA \u4e2d\u6709\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u4e0d\u80fd\u4f7f\u7528\u4efb\u4f55\u4e0e MATCH \u7b49\u6548\u7684\u51fd\u6570\u3002","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#primaryimage","url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png","contentUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-fonction-de-correspondance-dans-vba.png"},{"@type":"BreadcrumbList","@id":"https:\/\/exceladvisor.org\/cn\/%e6%af%94%e8%b5%9b2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/exceladvisor.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528vba\u4e2d\u7684\u5339\u914d\u529f\u80fd\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\/672","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=672"}],"version-history":[{"count":1,"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/pages\/672\/revisions"}],"predecessor-version":[{"id":1054,"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/pages\/672\/revisions\/1054"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/cn\/wp-json\/wp\/v2\/media?parent=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}