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

Executing applications from vbscript

Status
Not open for further replies.

mboswell1

Programmer
Apr 25, 2000
1
US
Is there a way to execute Word and/or Excel from vbscript?
 
Yes,<br>Set AnObjectName=CreateObject(&quot;WScript.Shell&quot;)<br>AnObjectName.Run &quot;WinWord.exe&quot;<br>AnObjectName.Run &quot;Excel.exe&quot;<br>AnObjectName.Run &quot;Calc.exe&quot;<br><br><br>
 
You can also use OLE automation, as both Excel and Word are also ActiveX servers. <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
can this code also be used to run a vb .exe program I wrote?&nbsp;&nbsp;Or do I have to make it into a control?
 
Is this in a web page or a desktop script? <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top