mmahdi
asked on
VB & Excel
I am trying to do the following using excel OLE objects in VB:
* Open a specific filename in excel from VB
* Open the file in readonly mode
* make excel with the workbook the active window
* make excel open maximised
I am sure there is an easy answer, but could not find the correct syntax do it
I would appreciate some help
Regards
Baltaz13
* Open a specific filename in excel from VB
* Open the file in readonly mode
* make excel with the workbook the active window
* make excel open maximised
I am sure there is an easy answer, but could not find the correct syntax do it
I would appreciate some help
Regards
Baltaz13
ASKER
qizhizhu,
It is not the answer I had in mind. I am looking for the syntax for OLE automation with Excel such as:
Set obj= CreateObject("excel.APPLIC ATION.8")
obj.Workbooks.Open (excelfile)
.
.
Regards
Baltaz13
It is not the answer I had in mind. I am looking for the syntax for OLE automation with Excel such as:
Set obj= CreateObject("excel.APPLIC
obj.Workbooks.Open (excelfile)
.
.
Regards
Baltaz13
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yronnen,
It worked fine,
Thanks for your help!
Baltaz13
It worked fine,
Thanks for your help!
Baltaz13
Also you can try "GetObject" or try to use active X control.