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

Strange CSV save

Status
Not open for further replies.

IPOMonkey

Programmer
Jun 18, 2003
163
GB
If i save an excel file as xlCSV using VBA and then use that file on a custom programme it is not as it should be.

But if i open it in Excel then save again choosing to leave out any incompatible features it works fine on my custom programme.

Can you save as a comma delimited file and leave out incompatible features using VBA code?



 
This is what I use.

objWKB.SaveAs Filename:="\\QS1047122\TO400\ZERO.csv", FileFormat:=xlCSVMSDOS, CreateBackup:=False
 
Have you tried the macro recorder ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
it is not as it should be
Could you specify this a bit?
What do you expect and what is the actual outcome?

Cheers,
Andy

[blue]The last voice we will hear before the world explodes will be that of an expert saying:
"This is technically impossible!" - Sir Peter Ustinov[/blue]
HP:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top