Automatic save with csv-extension

G

Gestron

I'm using Office 97 at my work. Normally, the following code will save
worksheet to a csv-extension. But....VisBas stops at the 3th line wit
a run-time error '438'. What's the correct code or what am I doin
wrong ?

Sub export_csv()

ActiveSheet.Copy
ActiveWorkbook.SavesAs FileName:="C:\upload.csv", FileFormat:=xlCSV
CreateBackup:=False
ActiveWorkbook.Close SaveChanges:=False

End Su
 

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