{"id":3141,"date":"2023-11-13T20:26:28","date_gmt":"2023-11-13T20:26:28","guid":{"rendered":"https:\/\/exceladvisor.org\/de\/klares-blatt\/"},"modified":"2023-12-03T13:04:14","modified_gmt":"2023-12-03T13:04:14","slug":"klares-blatt","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/de\/klares-blatt\/","title":{"rendered":"Wie l\u00f6sche ich ein ganzes blatt mit vba?"},"content":{"rendered":"<div class=\"excel-vor-dem-inhalt\" id=\"excel-4122986103\"><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>Um ein ganzes Blatt mit VBA-Code auf einmal zu l\u00f6schen, m\u00fcssen Sie zwei Dinge verwenden: zuerst die CLEAR-Methode und dann CELLS, um auf alle Zellen in einem Arbeitsblatt zu verweisen .<\/p><h2 class=\"wp-block-heading\"> Aktives Blatt l\u00f6schen<\/h2><p> Nehmen wir an, wenn Sie den gesamten Inhalt des Aktivierungsblatts l\u00f6schen m\u00f6chten, sieht der Code wie folgt aus.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Cells.Clear<\/code><\/pre><p> Wenn Sie diesen Code ausf\u00fchren, wird alles aus allen Zellen im aktiven Blatt gel\u00f6scht. Wie ich bereits erw\u00e4hnt habe, haben wir \u201eclear\u201c verwendet, um auf das gesamte Arbeitsblatt zu verweisen, und \u201eclear\u201c, um es zu l\u00f6schen.<\/p><h2 class=\"wp-block-heading\"> L\u00f6schen Sie ein bestimmtes Blatt<\/h2><p> Es gibt eine Sache, die Sie beachten sollten: Um ein Blatt zu l\u00f6schen, muss dieses Blatt aktiviert sein. Nehmen wir also an, Sie m\u00f6chten \u201eSheet1\u201c l\u00f6schen. Der Code w\u00fcrde wie folgt aussehen:<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Sheets(\"Sheet1\").Activate Cells.Clear<\/code><\/pre><p> In diesem Code aktiviert die erste Zeile \u201eSheet1\u201c und die zweite Zeile l\u00f6scht alles.<\/p><h2 class=\"wp-block-heading\"> Andere Dinge m\u00fcssen gekl\u00e4rt werden<\/h2><p> Sie k\u00f6nnen auch die folgenden Methoden verwenden, um verschiedene Dinge zu l\u00f6schen.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Cells.ClearContents 'to clear contents Cells.ClearComments 'to clear Comments Cells.ClearFormats 'to clears formatting Cells.ClearHyperlinks 'to clear hyperlinks Cells.ClearNotes 'to clear notes Cells.ClearOutline 'to clears outline<\/code><\/pre><h2 class=\"wp-block-heading\"> L\u00f6schen Sie ein Blatt aus einer bestimmten Arbeitsmappe<\/h2><p> Der folgende Code kann auf die Arbeitsmappe \u201eBook1\u201c verweisen und das Blatt \u201eSheet1\u201c l\u00f6schen. Stellen Sie jedoch sicher, dass die Arbeitsmappe zum Zeitpunkt <a href=\"https:\/\/exceladvisor.org\/de\/ein-makro-ausfuhren-2\/\">der Ausf\u00fchrung dieses Codes<\/a> ge\u00f6ffnet ist.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Workbooks(\"Book1\").Sheets(\"Sheet1\").Activate Cells.Clear<\/code><\/pre><p> Dieser Code aktiviert zun\u00e4chst \u201eBlatt1\u201c des Buches und l\u00f6scht es.<\/p><h2 class=\"wp-block-heading\"> L\u00f6schen Sie ein Blatt aus einer geschlossenen Arbeitsmappe<\/h2><p> Und im folgenden Code haben wir auf \u201eBlatt1\u201c der Arbeitsmappe \u201eBeispieldatei\u201c verwiesen, die an einem bestimmten Ort gespeichert ist.<\/p><pre class=\"wp-block-code\"> <code class=\"language-visual-basic\" lang=\"visual-basic\">Sub vba_clear_sheet() Dim wb As Workbook Application.ScreenUpdating = False Set wb = Workbooks.Open(\"C:\\Users\\Dell\\Desktop\\sample-file.xlsx\") wb.Sheets(\"Sheet1\").Activate Cells.Clear wb.Close SaveChanges:=True Application.ScreenUpdating = False End Sub<\/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\/de\/vba\/\">Was ist VBA<\/a><h2 class=\"gb-headline gb-headline-665e5f6b gb-headline-text gb-headline-mt-heading\"> Verwandte 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\/de\/kopierblatt\/\">Kopieren und verschieben Sie ein Blatt in Excel mit VBA<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/de\/zahle-die-blatter\/\">COUNT Sheets mit VBA in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/de\/ein-blatt-loschen-1\/\">L\u00d6SCHEN Sie ein BLATT mit VBA in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/de\/blatt-ausblenden\/\">Blenden Sie ein Blatt mit VBA in Excel ein und aus<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/de\/das-blatt-schutzen\/\">SCH\u00dcTZEN und UNSCHUTZ eines Blattes mit VBA in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/de\/blatt-umbenennen\/\">Benennen Sie ein Blatt mit VBA in Excel um<\/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-3141","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>Wie l\u00f6sche ich ein ganzes Blatt mit VBA in Excel?<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial erfahren Sie, wie Sie mit VBA-Code eine ganze Tabelle l\u00f6schen. Es zeigt Ihnen auch verschiedene Wege\" \/>\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\/de\/klares-blatt\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wie l\u00f6sche ich ein ganzes Blatt mit VBA in Excel?\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial erfahren Sie, wie Sie mit VBA-Code eine ganze Tabelle l\u00f6schen. Es zeigt Ihnen auch verschiedene Wege\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/de\/klares-blatt\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-03T13:04:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/exceladvisor.org\/de\/klares-blatt\/\",\"url\":\"https:\/\/exceladvisor.org\/de\/klares-blatt\/\",\"name\":\"Wie l\u00f6sche ich ein ganzes Blatt mit VBA in Excel?\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/de\/#website\"},\"datePublished\":\"2023-11-13T20:26:28+00:00\",\"dateModified\":\"2023-12-03T13:04:14+00:00\",\"description\":\"In diesem Tutorial erfahren Sie, wie Sie mit VBA-Code eine ganze Tabelle l\u00f6schen. Es zeigt Ihnen auch verschiedene Wege\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/de\/klares-blatt\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/de\/klares-blatt\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/exceladvisor.org\/de\/klares-blatt\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/exceladvisor.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wie l\u00f6sche ich ein ganzes blatt mit vba?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/exceladvisor.org\/de\/#website\",\"url\":\"https:\/\/exceladvisor.org\/de\/\",\"name\":\"Excel Advisor\",\"description\":\"Ihr Leitfaden zur Datendominanz\",\"publisher\":{\"@id\":\"https:\/\/exceladvisor.org\/de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/exceladvisor.org\/de\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/exceladvisor.org\/de\/#organization\",\"name\":\"Excel Advisor\",\"url\":\"https:\/\/exceladvisor.org\/de\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/exceladvisor.org\/de\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/exceladvisor.org\/de\/wp-content\/uploads\/2023\/11\/exceladvisor.org_.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/de\/wp-content\/uploads\/2023\/11\/exceladvisor.org_.png\",\"width\":105,\"height\":36,\"caption\":\"Excel Advisor\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/de\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wie l\u00f6sche ich ein ganzes Blatt mit VBA in Excel?","description":"In diesem Tutorial erfahren Sie, wie Sie mit VBA-Code eine ganze Tabelle l\u00f6schen. Es zeigt Ihnen auch verschiedene Wege","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\/de\/klares-blatt\/","og_locale":"de_DE","og_type":"article","og_title":"Wie l\u00f6sche ich ein ganzes Blatt mit VBA in Excel?","og_description":"In diesem Tutorial erfahren Sie, wie Sie mit VBA-Code eine ganze Tabelle l\u00f6schen. Es zeigt Ihnen auch verschiedene Wege","og_url":"https:\/\/exceladvisor.org\/de\/klares-blatt\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-03T13:04:14+00:00","twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/de\/klares-blatt\/","url":"https:\/\/exceladvisor.org\/de\/klares-blatt\/","name":"Wie l\u00f6sche ich ein ganzes Blatt mit VBA in Excel?","isPartOf":{"@id":"https:\/\/exceladvisor.org\/de\/#website"},"datePublished":"2023-11-13T20:26:28+00:00","dateModified":"2023-12-03T13:04:14+00:00","description":"In diesem Tutorial erfahren Sie, wie Sie mit VBA-Code eine ganze Tabelle l\u00f6schen. Es zeigt Ihnen auch verschiedene Wege","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/de\/klares-blatt\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/de\/klares-blatt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/exceladvisor.org\/de\/klares-blatt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/exceladvisor.org\/de\/"},{"@type":"ListItem","position":2,"name":"Wie l\u00f6sche ich ein ganzes blatt mit vba?"}]},{"@type":"WebSite","@id":"https:\/\/exceladvisor.org\/de\/#website","url":"https:\/\/exceladvisor.org\/de\/","name":"Excel Advisor","description":"Ihr Leitfaden zur Datendominanz","publisher":{"@id":"https:\/\/exceladvisor.org\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/exceladvisor.org\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/exceladvisor.org\/de\/#organization","name":"Excel Advisor","url":"https:\/\/exceladvisor.org\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/exceladvisor.org\/de\/#\/schema\/logo\/image\/","url":"https:\/\/exceladvisor.org\/de\/wp-content\/uploads\/2023\/11\/exceladvisor.org_.png","contentUrl":"https:\/\/exceladvisor.org\/de\/wp-content\/uploads\/2023\/11\/exceladvisor.org_.png","width":105,"height":36,"caption":"Excel Advisor"},"image":{"@id":"https:\/\/exceladvisor.org\/de\/#\/schema\/logo\/image\/"}}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/pages\/3141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/comments?post=3141"}],"version-history":[{"count":1,"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/pages\/3141\/revisions"}],"predecessor-version":[{"id":4143,"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/pages\/3141\/revisions\/4143"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/de\/wp-json\/wp\/v2\/media?parent=3141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}