{"id":4431,"date":"2021-11-10T11:14:23","date_gmt":"2021-11-10T11:14:23","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=4431"},"modified":"2021-11-10T11:18:43","modified_gmt":"2021-11-10T11:18:43","slug":"how-to-convert-a-text-file-to-excel-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/how-to-convert-a-text-file-to-excel-file\/28352.html","title":{"rendered":"How To Convert A Text File To Excel File?"},"content":{"rendered":"<p>I have text files in one folder ,i need to convert these files to excel files &#8230;where these excel files are used by the macro,ANY VBA or batchscript code to convert .txt to .xls<\/p>\n<p>ample text file(tab delimited):<\/p>\n<p>first_name middle_name last_name<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nsam john abraham<br \/>\nben tom william<br \/>\njan lisa mary<\/p>\n<p>Its not plain text files,its a tab delimited text files.<br \/>\nI tried with windows script<br \/>\nrename d:\/test\/*.txt *.xls<br \/>\nIt works but while opening the .xls document its shows a<br \/>\nWARNING:<br \/>\nThe file you are trying to open,&#8217;nmae.xls&#8217;,is in a different format than specified by the file extension.Verify that the file is not corrupted and is from a trusted source before opening the file.Do you want to open the file now?<\/p>\n<p>if we press yes it opens the file with exact data but i dont want this warning to come in.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":19},"question-category":[55],"question_tags":[],"class_list":["post-4431","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/4431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=4431"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=4431"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=4431"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=4431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}