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

Excel macro from webbrowser

Status
Not open for further replies.

Thrakazog

Programmer
Joined
Dec 10, 2001
Messages
48
Location
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top