Installed VB 6.0 application on user's PC which has MS Office 2007. In VB,
I'm trying to produce an Excel file using xlExcel9795. When it gets to this
line "**" in the code (see below), I get the following error...
Run-time error '1004'
Method '~' of object '~' failed
Is there another format I should be using? ...or... do I need to set
something in Excel 2007 so it works?
If OpenExcel = True Then
With xlApp
.ActiveWindow.ScrollColumn = 1
.Cells.Select
.Selection.Columns.AutoFit
.Range("A1").Select
strMsg = "(5) After Last Column/Row! "
** .ActiveWorkbook.SaveAs FileName:=strYEApath,
FileFormat:=xlExcel9795, CreateBackup:=False
End With
TIA,
Archived from group: microsoft>public>vb>directx