{"id":2149,"date":"2023-09-28T21:42:37","date_gmt":"2023-09-28T21:42:37","guid":{"rendered":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/"},"modified":"2023-12-06T05:58:19","modified_gmt":"2023-12-06T05:58:19","slug":"wedstrijd-2","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/","title":{"rendered":"Hoe gebruik ik de matchfunctie in vba?"},"content":{"rendered":"<div class=\"excel-voor-de-inhoud\" id=\"excel-522694148\"><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>Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH. Maar er is een manier waarop we deze functies kunnen gebruiken. In VBA is er <a href=\"https:\/\/exceladvisor.org\/nl\/spreadsheet-functie\/\">een eigenschap WorksheetFunction<\/a> waarmee u toegang kunt krijgen tot werkbladfuncties voor gebruik in een macro.<\/p><h2 class=\"wp-block-heading\"> Matching gebruiken in VBA<\/h2><p> Zoals ik al zei, gaan we de spreadsheetfunctie in de macro gebruiken, maar er is \u00e9\u00e9n ding waar u op moet letten als u de spreadsheetfunctie correct gebruikt: u ziet niet de naam van de argumenten in de functie, dus zorg ervoor dat u alle argumenten controleert die we in de overeenkomst moeten opgeven. Hieronder ziet u de voorbeeldopname ter referentie. <\/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=\"match-functie-in-vba\" width=\"516\" height=\"155\"><\/figure><\/div><p> Hier is het voorbeeld waarin we een lijst met willekeurige getallen hebben en u het getal &#8220;943&#8221; moet matchen. <\/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=\"willekeurige nummers\" width=\"171\" height=\"236\"><\/figure><\/div><p> Open nu de <a href=\"https:\/\/exceladvisor.org\/nl\/eenvoudige-visuele-editor\/\">Visual Basic Editor<\/a> , plaats een nieuwe <a href=\"https:\/\/exceladvisor.org\/nl\/module\/\">module<\/a> en volg onderstaande stappen.<\/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> Voer de werkbladeigenschap in en typ een punt om de lijst met functies te krijgen.<\/li><li> Selecteer de matchfunctie of u kunt deze ook invoeren.<\/li><li> Typ een haakje openen om de argumenten op te geven.<\/li><li> In de argumenten moet u de waarde opgeven waarnaar u wilt zoeken, het bereik dat u wilt onderzoeken en het zoektype.<\/li><li> Gebruik aan het einde een celverwijzing om het functieresultaat te verkrijgen. <\/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-voor-match-functie\" 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\/nl\/vba\/\">Wat is VBA<\/a><h2 class=\"gb-headline gb-headline-665e5f6b gb-headline-text gb-headline-mt-heading\"> Gerelateerde tutorials <\/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\/nl\/gemiddeld-2\/\">Gemiddelde waarden in Excel met VBA<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/de-datum-van-vandaag-huidige-tijd\/\">Ontvang de datum van vandaag en de huidige tijd met behulp van VBA<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/som-1\/\">Somwaarden op in Excel met VBA<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/modus-1\/\">MOD in VBA<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/spreadsheet-functie\/\">VBA-spreadsheetfunctie<\/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-2149","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>Hoe gebruik ik de matchfunctie in VBA?<\/title>\n<meta name=\"description\" content=\"Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH.\" \/>\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\/nl\/wedstrijd-2\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe gebruik ik de matchfunctie in VBA?\" \/>\n<meta property=\"og:description\" content=\"Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-06T05:58:19+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<meta name=\"twitter:label1\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/\",\"url\":\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/\",\"name\":\"Hoe gebruik ik de matchfunctie in VBA?\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#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-06T05:58:19+00:00\",\"description\":\"Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH.\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#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\/nl\/wedstrijd-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/exceladvisor.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe gebruik ik de matchfunctie in vba?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/#website\",\"url\":\"https:\/\/exceladvisor.org\/nl\/\",\"name\":\"Excel Advisor\",\"description\":\"Uw gids voor datadominantie\",\"publisher\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/exceladvisor.org\/nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/#organization\",\"name\":\"Excel Advisor\",\"url\":\"https:\/\/exceladvisor.org\/nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png\",\"width\":105,\"height\":36,\"caption\":\"Excel Advisor\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hoe gebruik ik de matchfunctie in VBA?","description":"Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH.","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\/nl\/wedstrijd-2\/","og_locale":"nl_NL","og_type":"article","og_title":"Hoe gebruik ik de matchfunctie in VBA?","og_description":"Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH.","og_url":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-06T05:58:19+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","twitter_misc":{"Geschatte leestijd":"1 minuut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/","url":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/","name":"Hoe gebruik ik de matchfunctie in VBA?","isPartOf":{"@id":"https:\/\/exceladvisor.org\/nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#primaryimage"},"image":{"@id":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#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-06T05:58:19+00:00","description":"Er zijn functies in VBA die u kunt gebruiken, maar u kunt geen enkele functie gebruiken die gelijkwaardig is aan MATCH.","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/exceladvisor.org\/nl\/wedstrijd-2\/#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\/nl\/wedstrijd-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/exceladvisor.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe gebruik ik de matchfunctie in vba?"}]},{"@type":"WebSite","@id":"https:\/\/exceladvisor.org\/nl\/#website","url":"https:\/\/exceladvisor.org\/nl\/","name":"Excel Advisor","description":"Uw gids voor datadominantie","publisher":{"@id":"https:\/\/exceladvisor.org\/nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/exceladvisor.org\/nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/exceladvisor.org\/nl\/#organization","name":"Excel Advisor","url":"https:\/\/exceladvisor.org\/nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/","url":"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png","contentUrl":"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png","width":105,"height":36,"caption":"Excel Advisor"},"image":{"@id":"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/"}}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/2149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/comments?post=2149"}],"version-history":[{"count":1,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/2149\/revisions"}],"predecessor-version":[{"id":2436,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/2149\/revisions\/2436"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/media?parent=2149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}