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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel to csv

Status
Not open for further replies.

b00gieman

Programmer
Jul 9, 2007
60
DE
Hi!
Dunno if this is the right place to ask,but....can somebody recommend a good script for transforming excel files into csv files?

Thanks in advance!
 
I reckon if you open the Excel file and then save as CSV that would do it.

Steve Davis

NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.
 
I know that,but I thought I could automatize that.
 
you can to it with VB

Code:
Dim objXL As Object, x
Set objXL = CreateObject("Excel.Application")
With objXL.Application
.displayalerts = False
.Visible = True
.workbooks.Open "your excel file's path.xls"
.workbooks("your excel file's name").SaveAsFileName:="path and name of your csv file.csv"
.workbooks("path and name of your csv file.csv").Close , savechanges:=True
End With
objXL.Quit
Set objXL = Nothing

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top