Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLS CLS is offline
external usenet poster
 
Posts: 3
Default Open/Import ASCII file

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Open/Import ASCII file

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

"CLS" wrote:

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
CLS CLS is offline
external usenet poster
 
Posts: 3
Default Open/Import ASCII file

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
"Rafael Guerreiro Osorio"
wrote in message ...
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

"CLS" wrote:

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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I import text file, analyze data, export results, open next file Geoffro Excel Programming 2 March 6th 05 08:02 PM
Import selected lines from an Ascii file drbobsled Excel Programming 1 June 23rd 04 12:19 AM
Ascii file import round 3 Mad Scientist Excel Programming 1 January 8th 04 10:40 PM
ascii file import round 2 Mad Scientist Excel Programming 1 January 8th 04 08:47 PM
Import ascii file Mad Scientist Excel Programming 2 January 8th 04 01:38 AM


All times are GMT +1. The time now is 08:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"