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

Make Excel Visible

Status
Not open for further replies.

AlexIT

Technical User
Jul 27, 2001
802
US
Following up to a previous question I had, when I wshell.run "c:\test.xls" I create an instance of Excel that is not visible...in VBA I would add an oExcel.Visible=True. How do I do this in vbscript??

Thanks,
Alex
 
you would need to bind to the instance of Excel that is running and use the same .Visible property
 
If you need more control or just to open up an xls file in the interface for users to interact with it, you can always do it simply like this.
[tt]
[green]xlfile="d:\test\xyz.xls"[/green]
set oxl=createobject("excel.application")
oxl.visible=true
oxl.workbooks.open xlfile
set oxl=nothing
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top