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

Starting Programm by Excel

Status
Not open for further replies.

CPUbuster

Technical User
Oct 12, 2000
18
NL
Hi,

I want to make a macro witch is able to start a program. So i probertly need a start.object(c:\bla\bla.exe)

Can anyone give me the excacyt code? I´m kinda new at this
 

Do you want Excel to open a program or a spreadsheet? here's what I use to open spreadsheets.

Sub Macro1()
'Keyboard Shortcut: Ctrl+t
Workbooks.Open FileName:="C:\My Documents\FileName.xls"
End Sub

I just assign a shortcut to it, in this case Ctrl+t.
I've never opened a "Program" within excel but I think if you replace the "Filename.xls" with your program name, it should work. Good Luck

P.S. If there's a better way, let me know.

QUOTE OF THE DAY
I'm a firm believer in the theory that people only do their best at things they truly enjoy.

Jr_Clown :eek:)
 
Kinda works. I get a gread opening of the file this way. Tho there is this problem, it opens the program code in a excel sheet.....not quite what i need, help please!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top