{"id":1537,"date":"2023-11-17T14:13:09","date_gmt":"2023-11-17T14:13:09","guid":{"rendered":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/"},"modified":"2023-12-06T05:50:14","modified_gmt":"2023-12-06T05:50:14","slug":"selecteer-alles","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/","title":{"rendered":"Hoe selecteer ik alle cellen met vba-code?"},"content":{"rendered":"<div class=\"excel-voor-de-inhoud\" id=\"excel-1241708936\"><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>In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen in een werkblad te selecteren.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Cells.Select<\/code><\/pre><h2 class=\"wp-block-heading\"> VBA om alle cellen te selecteren<\/h2><ol><li> Typ eerst de eigenschap CELLS om naar alle cellen in het werkblad te verwijzen. <br><img loading=\"lazy\" decoding=\"async\" title=\"1-type-de-cellen-eigenschap\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png\" sizes=\"auto, \" srcset=\"\" alt=\"type-the-cells-property\" width=\"360\" height=\"215\"><\/li><li> Voer daarna een punt (.) in.<\/li><li> Op dit punt hebt u een lijst met methoden en eigenschappen. <br><img loading=\"lazy\" decoding=\"async\" title=\"2-enter-een-punt\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/2-entrez-un-point.png\" sizes=\"auto, \" srcset=\"\" alt=\"enter-a-dot\" width=\"391\" height=\"285\"><\/li><li> Selecteer in deze lijst \u201cSelecteren\u201d of typ \u201cSelecteren\u201d. <br><img loading=\"lazy\" decoding=\"async\" title=\"3-in-lijst-selecteer-selecteer-of-type-selecteer\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/3-dans-la-liste-selectionnez-selectionnez-ou-tapez-selectionnez.png\" sizes=\"auto, \" srcset=\"\" alt=\"from-list-select-select-or-type-select\" width=\"356\" height=\"221\"><\/li><\/ol><p> Nadat u het hele werkblad hebt geselecteerd, kunt u het lettertype wijzigen, de inhoud wissen of andere dingen doen.<\/p><h2 class=\"wp-block-heading\"> Opmerkingen<\/h2><ul><li> De eigenschap CELLS werkt op dezelfde manier als u de <a href=\"https:\/\/exceladvisor.org\/nl\/toetsenbord-sneltoetsen\/\">sneltoets Control+A<\/a> gebruikt om alle cellen te selecteren.<\/li><li> Wanneer u deze VBA-code uitvoert, worden alle cellen geselecteerd, zelfs als het blad is beveiligd en sommige cellen zijn vergrendeld.<\/li><li> Het selecteert ook verborgen cellen.<\/li><\/ul><h2 class=\"wp-block-heading\"> Het blad moet geactiveerd zijn<\/h2><p> Nu moet u \u00e9\u00e9n ding begrijpen: wanneer u alle cellen van een blad selecteert <a href=\"https:\/\/exceladvisor.org\/nl\/blad-activeren\/\">, moet dat blad worden ingeschakeld<\/a> . Kortom, u kunt geen cellen selecteren op een blad dat niet is geactiveerd.<\/p><p> Stel dat u alle cellen in &#8216;Blad1&#8217; wilt selecteren. Als u het onderstaande type code gebruikt, krijgt u een foutmelding. U moet eerst &#8220;Blad1&#8221; activeren en vervolgens de eigenschap &#8220;Cellen&#8221; gebruiken om alle cellen te selecteren.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Worksheets(\"Sheet1\").Activate Cells.Select<\/code><\/pre><p> Wanneer u het nu uitvoert, activeert het eerst &#8220;Blad1&#8221; en selecteert vervolgens alle cellen. Dit ding geeft je een kleine beperking dat je niet het hele blad kunt selecteren als dat blad niet is ingeschakeld.<\/p><p> Er is nog iets dat u kunt doen: u kunt <a href=\"https:\/\/exceladvisor.org\/nl\/een-nieuw-blad-toevoegen-1\/\">een nieuw blad toevoegen<\/a> en vervolgens alle cellen selecteren.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Sheets.Add.Name = \"mySheet\" Cells.Select<\/code><\/pre><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\/voeg-een-regel-in-1\/\">Voeg een rij in met VBA in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/samenvoegen\/\">Voeg cellen in Excel samen met VBA-code<\/a><\/li><li> Selecteer een bereik\/cel met VBA in Excel<\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/actieve-cel-1\/\">ActiveCell in VBA in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/speciale-cellen\/\">Speciale cellenmethode in VBA in Excel<\/a> <\/li><\/ul><\/div><\/div><div class=\"gb-grid-column gb-grid-column-50067b57\"><div class=\"gb-container gb-container-50067b57\"><\/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-1537","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 selecteer ik alle cellen met VBA-code?<\/title>\n<meta name=\"description\" content=\"In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen waarin u zich bevindt te selecteren\" \/>\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\/selecteer-alles\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe selecteer ik alle cellen met VBA-code?\" \/>\n<meta property=\"og:description\" content=\"In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen waarin u zich bevindt te selecteren\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-06T05:50:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.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=\"2 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/\",\"url\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/\",\"name\":\"Hoe selecteer ik alle cellen met VBA-code?\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png\",\"datePublished\":\"2023-11-17T14:13:09+00:00\",\"dateModified\":\"2023-12-06T05:50:14+00:00\",\"description\":\"In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen waarin u zich bevindt te selecteren\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#primaryimage\",\"url\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/exceladvisor.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe selecteer ik alle cellen met vba-code?\"}]},{\"@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 selecteer ik alle cellen met VBA-code?","description":"In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen waarin u zich bevindt te selecteren","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\/selecteer-alles\/","og_locale":"nl_NL","og_type":"article","og_title":"Hoe selecteer ik alle cellen met VBA-code?","og_description":"In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen waarin u zich bevindt te selecteren","og_url":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-06T05:50:14+00:00","og_image":[{"url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Geschatte leestijd":"2 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/","url":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/","name":"Hoe selecteer ik alle cellen met VBA-code?","isPartOf":{"@id":"https:\/\/exceladvisor.org\/nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#primaryimage"},"image":{"@id":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#primaryimage"},"thumbnailUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png","datePublished":"2023-11-17T14:13:09+00:00","dateModified":"2023-12-06T05:50:14+00:00","description":"In VBA is er een eigenschap genaamd CELLS die u kunt gebruiken om alle cellen waarin u zich bevindt te selecteren","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/nl\/selecteer-alles\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#primaryimage","url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png","contentUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-tapez-la-propriete-des-cellules.png"},{"@type":"BreadcrumbList","@id":"https:\/\/exceladvisor.org\/nl\/selecteer-alles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/exceladvisor.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe selecteer ik alle cellen met vba-code?"}]},{"@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\/1537","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=1537"}],"version-history":[{"count":1,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1537\/revisions"}],"predecessor-version":[{"id":2693,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1537\/revisions\/2693"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/media?parent=1537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}