Hi, I have a little problem which should be to hard to solve. I allready searched the forum and found some stuff, but not all that I need.
Heres my situation: I have an excel workbook which is allways open. The workbook contains a makro which I want to call from a vbscript.
I messed around with this code but couldnt really come up with the solution:
What code would I use to run the makro on an allready opened workbook?
Heres my situation: I have an excel workbook which is allways open. The workbook contains a makro which I want to call from a vbscript.
I messed around with this code but couldnt really come up with the solution:
Code:
Set objExcel = createobject("Excel.application")
objexcel.Visible = True
objexcel.Workbooks.open "C:\Dokumente und Einstellungen\messmer\Desktop\scripte\VBA\Excel\Strahl\echtSystem\test\auswertung.xls"
objexcel.Application.Run "letsGo"
objexcel.Quit
What code would I use to run the makro on an allready opened workbook?