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

help!!!! change excel save format in vb6???

Status
Not open for further replies.

werd

Programmer
Jun 5, 2001
1
GB
i need to save a file as a "Microsoft Excel Workbook" which has been opened as a .txt file. At present all i can get is "Text (Tab-delimited)" irrespective of the filename

i'm using the following code in my application...
ExcelApp.ActiveWorkbook.SaveAs FileName:=FileName1

i know that using VBA it should look like this...
ActiveWorkbook.Saveas Filename:=FileName1, FileFormat:=xlNormal

can anyone tell me what the "FileFormat:=xlNormal" should be in VB6

Thanks.
 
vbnormal is only a file attribute (like not archive, or readonly...) why don't yu use directly
ActiveWorkbook.Saveas Filename:=FileName1, FileFormat:=xlExcel9795
let me know :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top