{"id":5691,"date":"2017-02-16T22:55:01","date_gmt":"2017-02-16T22:55:01","guid":{"rendered":"https:\/\/wordherd.io\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/"},"modified":"2017-02-16T22:55:01","modified_gmt":"2017-02-16T22:55:01","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-vba-%e4%bb%a3%e7%a0%81%e4%bb%8e%e6%96%87%e6%9c%ac%e6%96%87%e4%bb%b6%e4%b8%ad%e5%88%a0%e9%99%a4%e7%a9%ba%e7%99%bd%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/wordherd.io\/zh\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 VBA \u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c"},"content":{"rendered":"<p>\u5982\u679c\u4f60\u66fe\u7ecf\u5904\u7406\u8fc7\u6587\u672c\u6570\u636e\uff0c\u4f60\u5c31\u4f1a\u77e5\u9053\u5220\u9664\u7a7a\u884c\u6709\u591a\u607c\u4eba\u3002\u5176\u4e2d\u4e00\u4e2a\u95ee\u9898\u5728\u4e8e\uff0c\u4f60\u4e0d\u60f3\u5220\u9664\u6240\u6709\u7a7a\u884c\uff0c\u5426\u5219\u4f1a\u7834\u574f\u6587\u6863\u7684\u683c\u5f0f\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u4e00\u4e9b\u5e38\u89c1\u7684 VBA \u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u63d0\u53d6\u4e00\u7cfb\u5217\u5e72\u51c0\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u6253\u5f00\u548c\u7814\u7a76\u6587\u672c\u6587\u4ef6<\/strong><\/p>\n<p>\u8be5\u4ee3\u7801\u7684\u903b\u8f91\u5305\u62ec\u5bf9\u6587\u4ef6\u4e2d\u7684\u6bcf\u4e00\u884c\u8fdb\u884c\u5206\u6790\uff0c\u5982\u679c\u8be5\u884c\u7b26\u5408\u6211\u4eec\u7684\u6807\u51c6\uff0c\u5219\u5c06\u8be5\u884c\u4fdd\u5b58\u4e3a\u6587\u672c\u5b57\u7b26\u4e32\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u8be5\u6587\u672c\u5b57\u7b26\u4e32\u91cd\u65b0\u5199\u5165\u5230\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u8fdb\u5165\u6587\u4ef6\u7cfb\u7edf\u5bf9\u8c61\uff08FSO\uff09\uff0c\u5e76\u6253\u5f00\u540d\u4e3a\u201cblanks.txt\u201d\u7684\u6587\u4ef6\u3002\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u7684\u4ee3\u7801\u662f\u60a8\u53ef\u80fd\u9700\u8981\u5c06\u5176\u4fdd\u5b58\u5728\u4ee3\u7801\u5e93\u4e2d\u7684\u4e00\u79cd\u7a0b\u5e8f\uff0c\u4f9b\u5c06\u6765\u53c2\u8003\u4f7f\u7528\u3002<br \/>\nDim fso \u4f5c\u4e3a\u811a\u672c\u5316\u7684 FileSystemObject<\/p>\n<p>\u8bbe\u7f6e fso = \u65b0\u7684\u811a\u672c\u5316\u6587\u4ef6\u7cfb\u7edf\u5bf9\u8c61<\/p>\n<p>\u5c06\u6211\u7684\u6587\u4ef6\u8bbe\u4e3a\u5bf9\u8c61<\/p>\n<p>\u5c06 filePath \u8d4b\u4e3a\u5b57\u7b26\u4e32<\/p>\n<p>filePath = ActiveWorkbook.path &amp; \u201cfilesblanks.txt\u201d<br \/>\n\u5c06 myFile \u8bbe\u7f6e\u4e3a fso.openTextFile(filePath)<\/p>\n<p><strong>\u6839\u9664\u5e72\u51c0\u54c1\u79cd<\/strong><\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u53ef\u4ee5\u5b66\u4e60\u6587\u4ef6\u4e2d\u6bcf\u4e2a\u884c\u7684\u5185\u5bb9\uff0c\u4f46\u9996\u5148\u6211\u4eec\u9700\u8981\u8003\u8651\u8981\u4e22\u5f03\u7684\u90a3\u4e9b\u5e72\u51c0\u7684\u884c\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5c06\u5b9a\u4e49\u4e00\u4e9b\u53d8\u91cf\uff0c\u5e76\u4e3a\u5176\u63d0\u4f9b\u521d\u59cb\u503c\u3002<br \/>\n\u2018\u662f\u5426\u8981\u5c06\u9053\u8def\u5305\u542b\u5728\u65b0\u7684\u6587\u4ef6\u4e2d\uff1f\u201d<\/p>\n<p>Dim includeLine As Boolean<br \/>\n\u2018 \u5305\u542b\u7684\u884c\u8981\u7528\u6587\u672c\u5185\u5bb9\u5b57\u7b26\u4e32\u6765\u8bb0\u5f55<br \/>\n\u5c06 allTxt \u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/p>\n<p>\u2018\u5728\u65b0\u6587\u4ef6\u4e2d\u5305\u542b\u7684\u5404\u79cd\u6e05\u6d01\u83cc\u682a<br \/>\n\u51cf\u5c11\u7a7a\u767d\u5b57\u7b26\u7684\u957f\u5ea6<\/p>\n<p>countBlanks = 1<br \/>\n\u5305\u542b\u7a7a\u503c = \u96f6<br \/>\nincludeLine = False<\/p>\n<p>\u5bf9\u4e8e\u5e72\u51c0\u7684\u5b57\u7b26\u4e32\uff0c\u9884\u8bbe\u503c\u5927\u7ea6\u662f 1\uff0c\u6240\u4ee5\u6211\u4eec\u4e0d\u4f1a\u7834\u574f\u4efb\u4f55\u6bb5\u843d\u7684\u6362\u884c\u3002\u5982\u679c\u6211\u4eec\u60f3\u5220\u9664\u6bcf\u4e2a\u5e72\u51c0\u7684\u5b57\u7b26\u4e32\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u53d8\u91cf\u8bbe\u7f6e\u4e3a\u96f6\u3002<\/p>\n<p>\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u8bfb\u53d6\u8be5\u6587\u4ef6\uff0c\u5e76\u901a\u77e5\u4ee3\u7801\uff0c\u4ee5\u4fbf\u5c06\u5176\u5199\u5165\u5230\u65b0\u7684\u6587\u4ef6\u4e2d\u3002<br \/>\n\u76f4\u5230\u6211\u7684 File.AtEndOfStream\u4e3a\u6b62<\/pre>\n<p>includeLine = False<\/p>\n<p>txt = myFile.ReadLine<\/p>\n<p>\u6bcf\u4e2a\u884c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u90fd\u4e0d\u4f1a\u5305\u542b\u5728\u65b0\u7684\u6587\u4ef6\u4e2d\uff0c\u9664\u975e\u5b83\u7b26\u5408\u4e0b\u51e0\u884c\u4ee3\u7801\u4e2d\u89c4\u5b9a\u7684\u6807\u51c6\u3002\u76f4\u5230\u627e\u5230\u4e00\u4e2a\u975e\u7a7a\u767d\u884c\u7684\u8bdd\uff0c\u624d\u4f1a\u8ba1\u7b97\u51fa\u5e72\u51c0\u884c\u7684\u6570\u91cf\uff0c\u7136\u540e\u5c06\u8ba1\u6570\u5668\u8bbe\u7f6e\u4e3a\u96f6\u3002<br \/>\n\u9009\u201c\u6848\u4f8bLen\uff08txt\uff09\u201d<\/p>\n<p>\u75c5\u4f8b\u96f6<\/p>\n<p>\u5982\u679c\u5728 countBlanks &lt; includeBlanks \u90a3\u4e48 includeLine = True<\/p>\n<p>countBlanks = countBlanks + 1<\/p>\n<p>\u53e6\u6709\u6848\u4f8b<\/p>\n<p>countBlanks = 0<\/p>\n<p>includeLine = True<\/p>\n<p>\u5b8c\u6210\u9009\u62e9<\/p>\n<p>\u5982\u679c\u9053\u8def\u7b26\u5408\u6211\u4eec\u7684\u53c2\u6570\uff0c\u90a3\u4e48\u6211\u4eec\u5c06\u5b83\u7528\u5168\u65b0\u7684\u7ebf\u5b57\u7b26\u6dfb\u52a0\u5230 txt \u5b57\u7b26\u4e32\u4e2d\uff0c\u7136\u540e\u7ee7\u7eed\u5faa\u73af\u3002<br \/>\n\u5982\u679c\u5305\u542bLine\uff0c\u5219<\/p>\n<p>allTxt = allTxt &amp; txt &amp; vbCrLf<\/p>\n<p>\u5982\u679c\u5b8c\u6210<\/p>\n<p>\u5faa\u73af<br \/>\n\u6587\u672c\u6587\u4ef6\u5904\u7406\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u5c06\u6587\u4ef6\u5173\u95ed\uff0c\u5e76\u5c06\u6587\u672c\u5b57\u7b26\u4e32\u5199\u5165\u5230\u65b0\u7684\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>myFile.shut<\/p>\n<p>filePath = ActiveWorkbook.path &amp; \u201cfilesblanksRemoved.txt\u201d<\/p>\n<p>Set myFile = fso.CreateTextFile(filePath)<\/p>\n<p>myFile.Write allTxt<\/p>\n<p>myFile.Shut<\/p>\n<p>\u8bbe\u7f6e fso = \u65e0<br \/>\n\u5728\u5bf9\u8fd9\u79cd\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\u65f6\uff0c\u52a1\u5fc5\u4e0d\u8981\u8986\u76d6\u8be5\u6587\u4ef6\u7684\u552f\u4e00\u7248\u672c\uff0c\u4ee5\u514d\u53d1\u751f\u7a81\u53d1\u60c5\u51b5\uff0c\u5bfc\u81f4\u60a8\u5931\u53bb\u6240\u6709\u6570\u636e\u3002\u5373\u4f7f\u60a8\u53d1\u73b0\u4ee3\u7801\u8fd0\u884c\u6b63\u5e38\uff0c\u4e5f\u5e94\u8be5\u5236\u4f5c\u4e00\u4efd\u526f\u672c\uff08\u4f7f\u7528 VBA\uff09\uff0c\u4ee5\u4fdd\u62a4\u8fd9\u4e9b\u72ec\u7279\u7684\u4fe1\u606f\u3002<\/p>\n<p><strong>\u6458\u8981<\/strong><\/p>\n<p>\u7531\u4e8e\u5728\u5904\u7406\u6587\u672c\u4fe1\u606f\u65f6\uff0c\u5bf9\u4e8e\u8bb8\u591a Excel \u7528\u6237\u6765\u8bf4\u90fd\u662f\u53f8\u7a7a\u89c1\u60ef\u7684\u73b0\u8c61\uff0c\u56e0\u6b64\u5efa\u8bae\u5f00\u53d1\u4e00\u4e9b\u76f8\u5173\u7684\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u5728\u4ee5\u540e\u53ef\u4ee5\u968f\u65f6\u4f7f\u7528\u2014\u2014\u800c\u4e0d\u662f\u5728\u65f6\u95f4\u7d27\u8feb\u65f6\u624d\u53bb\u627e\u7b54\u6848\u3002<\/p>\n<div class=\"source\"><a href=\"http:\/\/ezinearticles.com\/?How-To-Use-VBA-Code-To-Remove-Blank-Lines-From-A-Text-File&amp;id=7393752\">\u6765\u6e90<\/a> \u7531 <a href=\"http:\/\/ezinearticles.com\/expert\/Andy_L_Gibson\/1382722\">\u5b89\u8fea\u00b7L\u00b7\u5409\u5e03\u68ee<\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>If you happen to&#8217;ve ever labored with textual content information, you will know the way irritating it may be to take away empty strains. A part of the issue is that you do not need to take away each clean line in any other case it&#8217;d upset the formatting of the doc. This text will [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"categories":[15],"tags":[200,595],"builders":[],"industry":[],"platform":[],"class_list":["post-5691","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress","tag-wordpress-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Use VBA Code To Remove Blank Lines From A Text File - WordHerd WordPress Migration<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wordherd.io\/zh\/\u535a\u5ba2\/\u5982\u4f55\u4f7f\u7528-vba-\u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Use VBA Code To Remove Blank Lines From A Text File - WordHerd WordPress Migration\" \/>\n<meta property=\"og:description\" content=\"If you happen to&#8217;ve ever labored with textual content information, you will know the way irritating it may be to take away empty strains. A part of the issue is that you do not need to take away each clean line in any other case it&#8217;d upset the formatting of the doc. This text will [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wordherd.io\/zh\/\u535a\u5ba2\/\u5982\u4f55\u4f7f\u7528-vba-\u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c\/\" \/>\n<meta property=\"og:site_name\" content=\"WordHerd WordPress Migration\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/wordherdio\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-16T22:55:01+00:00\" \/>\n<meta name=\"author\" content=\"WordHerd\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wordherdio\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"WordHerd\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/\"},\"author\":{\"name\":\"WordHerd\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/#\\\/schema\\\/person\\\/373419b97c0fbc45a3a16462bdba0fac\"},\"headline\":\"How To Use VBA Code To Remove Blank Lines From A Text File\",\"datePublished\":\"2017-02-16T22:55:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/\"},\"wordCount\":635,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/#organization\"},\"keywords\":[\"WordPress\",\"wordpress tutorial\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/\",\"url\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/\",\"name\":\"How To Use VBA Code To Remove Blank Lines From A Text File - WordHerd WordPress Migration\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/#website\"},\"datePublished\":\"2017-02-16T22:55:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/blog\\\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wordherd.io\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Use VBA Code To Remove Blank Lines From A Text File\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/#website\",\"url\":\"https:\\\/\\\/wordherd.io\\\/\",\"name\":\"WordHerd WordPress Migration\",\"description\":\"Website Migration Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wordherd.io\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/#organization\",\"name\":\"WordHerd WordPress Migration\",\"url\":\"https:\\\/\\\/wordherd.io\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wordherd.io\\\/wp-content\\\/uploads\\\/wordherd-trademark.png\",\"contentUrl\":\"https:\\\/\\\/wordherd.io\\\/wp-content\\\/uploads\\\/wordherd-trademark.png\",\"width\":1000,\"height\":315,\"caption\":\"WordHerd WordPress Migration\"},\"image\":{\"@id\":\"https:\\\/\\\/wordherd.io\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wordherd.io\\\/#\\\/schema\\\/person\\\/373419b97c0fbc45a3a16462bdba0fac\",\"name\":\"WordHerd\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf8c7166601a64c6c57b67ffbeab8f8c6a378cca786da9a326c1a34a2ec6f860?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf8c7166601a64c6c57b67ffbeab8f8c6a378cca786da9a326c1a34a2ec6f860?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bf8c7166601a64c6c57b67ffbeab8f8c6a378cca786da9a326c1a34a2ec6f860?s=96&d=mm&r=g\",\"caption\":\"WordHerd\"},\"sameAs\":[\"https:\\\/\\\/wordherd.io\",\"https:\\\/\\\/www.facebook.com\\\/wordherdio\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wordherd\",\"https:\\\/\\\/x.com\\\/wordherdio\"],\"url\":\"https:\\\/\\\/wordherd.io\\\/zh\\\/blog\\\/author\\\/wordherd\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u4f7f\u7528 VBA \u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c - WordHerd WordPress \u8fc1\u79fb","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:\/\/wordherd.io\/zh\/\u535a\u5ba2\/\u5982\u4f55\u4f7f\u7528-vba-\u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c\/","og_locale":"zh_CN","og_type":"article","og_title":"How To Use VBA Code To Remove Blank Lines From A Text File - WordHerd WordPress Migration","og_description":"If you happen to&#8217;ve ever labored with textual content information, you will know the way irritating it may be to take away empty strains. A part of the issue is that you do not need to take away each clean line in any other case it&#8217;d upset the formatting of the doc. This text will [&hellip;]","og_url":"https:\/\/wordherd.io\/zh\/\u535a\u5ba2\/\u5982\u4f55\u4f7f\u7528-vba-\u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c\/","og_site_name":"WordHerd WordPress Migration","article_author":"https:\/\/www.facebook.com\/wordherdio\/","article_published_time":"2017-02-16T22:55:01+00:00","author":"WordHerd","twitter_card":"summary_large_image","twitter_creator":"@wordherdio","twitter_misc":{"\u4f5c\u8005":"WordHerd","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/#article","isPartOf":{"@id":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/"},"author":{"name":"WordHerd","@id":"https:\/\/wordherd.io\/#\/schema\/person\/373419b97c0fbc45a3a16462bdba0fac"},"headline":"How To Use VBA Code To Remove Blank Lines From A Text File","datePublished":"2017-02-16T22:55:01+00:00","mainEntityOfPage":{"@id":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/"},"wordCount":635,"commentCount":0,"publisher":{"@id":"https:\/\/wordherd.io\/#organization"},"keywords":["WordPress","wordpress tutorial"],"articleSection":["WordPress"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/","url":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/","name":"\u5982\u4f55\u4f7f\u7528 VBA \u4ee3\u7801\u4ece\u6587\u672c\u6587\u4ef6\u4e2d\u5220\u9664\u7a7a\u767d\u884c - WordHerd WordPress \u8fc1\u79fb","isPartOf":{"@id":"https:\/\/wordherd.io\/#website"},"datePublished":"2017-02-16T22:55:01+00:00","breadcrumb":{"@id":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wordherd.io\/blog\/how-to-use-vba-code-to-remove-blank-lines-from-a-text-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wordherd.io\/"},{"@type":"ListItem","position":2,"name":"How To Use VBA Code To Remove Blank Lines From A Text File"}]},{"@type":"WebSite","@id":"https:\/\/wordherd.io\/#website","url":"https:\/\/wordherd.io\/","name":"WordHerd WordPress \u79fb\u8f6c","description":"\u7f51\u7ad9\u8fc1\u79fb\u670d\u52a1","publisher":{"@id":"https:\/\/wordherd.io\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wordherd.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/wordherd.io\/#organization","name":"WordHerd WordPress \u79fb\u8f6c","url":"https:\/\/wordherd.io\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/wordherd.io\/#\/schema\/logo\/image\/","url":"https:\/\/wordherd.io\/wp-content\/uploads\/wordherd-trademark.png","contentUrl":"https:\/\/wordherd.io\/wp-content\/uploads\/wordherd-trademark.png","width":1000,"height":315,"caption":"WordHerd WordPress Migration"},"image":{"@id":"https:\/\/wordherd.io\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/wordherd.io\/#\/schema\/person\/373419b97c0fbc45a3a16462bdba0fac","name":"WordHerd","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/bf8c7166601a64c6c57b67ffbeab8f8c6a378cca786da9a326c1a34a2ec6f860?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bf8c7166601a64c6c57b67ffbeab8f8c6a378cca786da9a326c1a34a2ec6f860?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bf8c7166601a64c6c57b67ffbeab8f8c6a378cca786da9a326c1a34a2ec6f860?s=96&d=mm&r=g","caption":"WordHerd"},"sameAs":["https:\/\/wordherd.io","https:\/\/www.facebook.com\/wordherdio\/","https:\/\/www.linkedin.com\/company\/wordherd","https:\/\/x.com\/wordherdio"],"url":"https:\/\/wordherd.io\/zh\/blog\/author\/wordherd\/"}]}},"_links":{"self":[{"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/posts\/5691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/comments?post=5691"}],"version-history":[{"count":0,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/posts\/5691\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/media?parent=5691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/categories?post=5691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/tags?post=5691"},{"taxonomy":"builders","embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/builders?post=5691"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/industry?post=5691"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/wordherd.io\/zh\/wp-json\/wp\/v2\/platform?post=5691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}