I'm trying to find a way to run a Excel macro when the .XLS is loaded in the webbrowser control.
My code looks like this:
WebBrowser1.Navigate "C:\MyDoc.xls"
WebBrowser1.Document.CommandBars(99).Controls(1).Text = "GO"
'Need to call macro here!
The spreadsheet displays fine. But after I update the control text I need to run a macro. HELP!
My code looks like this:
WebBrowser1.Navigate "C:\MyDoc.xls"
WebBrowser1.Document.CommandBars(99).Controls(1).Text = "GO"
'Need to call macro here!
The spreadsheet displays fine. But after I update the control text I need to run a macro. HELP!