Open/Import ASCII file

C

CLS

Hi All,

Looking for VBA code to open/import an ascii file w/ comma delimits.
Workbook.open "asciifile" dumps each full line into the first cell. I want
it delimited by commas.

Thanks
Chad
 
G

Guest

Try this:

Sub OpenWBK()
Workbooks.OpenText "d:\myfile", , , , , , , , True
End Sub

Select OpenText and press F1 for info on all the options of this method.

Best,

Rafael
 
C

CLS

Perfect
Thanks

--
_________________________________
Cameron Land Surveying Ltd.
#203 - 6333 148th Street,
Surrey, BC
V3S 3K4
(p) (604) 597-3777
(f) (604) 597-3783

All messages scanned with Norton Antivirus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top