vaughn9
Technical User
- Sep 23, 2001
- 183
I am try to open an excel file from visual basic using code similar to code I used to open a word document.
I am getting an error saying that object does not support property
I selected the excel 9.0 object libray
declared the ExApp in General then my code reads as follows
Set ExApp = New Excel.Application
ExApp.Visible = True
ExApp.WindowState = wdWindowStateMaximize
ExApp.Documents.Open FileName:="C:\My Documents\may.xls", ConfirmConversions:= _
False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
Could someone point out to men where I am going wrong
I am getting an error saying that object does not support property
I selected the excel 9.0 object libray
declared the ExApp in General then my code reads as follows
Set ExApp = New Excel.Application
ExApp.Visible = True
ExApp.WindowState = wdWindowStateMaximize
ExApp.Documents.Open FileName:="C:\My Documents\may.xls", ConfirmConversions:= _
False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto
Could someone point out to men where I am going wrong