Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening an excel file for reading

Status
Not open for further replies.

bitwise

Programmer
Mar 15, 2001
269
US
I have to convert an excel file into a *.cvs (comma value separated) or *.tvs (tab value separated) file. Essentially I just want to open the excel file, run through each row converting each row into a line in the destination file separted appropriately (, or \t). I have everything done except for of course opening the excel file and going through it. If someone could give me some tips on how this could be done it would be most helpful as this is my very first VB app I have ever done.

Thanks,
-bitwise
 
Use the GetObject or CreateObject method to open/attach to Excel. Then, if you want the code for saving as a .cvs file, just record a macro while manually performing the task.
 
hi....try recording a macro in Excel and saving your file as a text file......treak it from there......if you need more help I can get into it more just email me at:

drat@mediaone.net

:)

Ratman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top