View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
patrick molloy patrick molloy is offline
external usenet poster
 
Posts: 391
Default Converting a Text file to Excel

in code, you can use the workbooks. Opentext method

for example

SET WB = Workbooks.OpenText(sFileName)

Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
Without going thru the Wizard, is there any way to

covert
a text file into an excel spreadsheet (just executing
an .exe or .bat file)? We have a requirement to automate
the conversion of text file into excel with some
predifined formating. Thanks for help.
.