>Thanks a lot again Cetin. I have know it now using this code base on your hint that I will use the Macro:
>
>lcFileName = "c:\Doc1.doc"
>
>Thisform.WebBrowser.Navigate2('file://' + lcFileName, 0x2)
>
>oActiveDoc = Thisform.webBrowser.Document
>oActiveDoc.CommandBars("Standard").Visible = .t. && Display Standard Toolbar
>
>
>You're the man.
>
>Rene
Let's be honest :) I thought about adding any command button would let you have your VFP driven code for Excel but didn't think about CommandBars collection at all. I learned it from you :)
Then a tip for you :
You could create and add a button to a custom toolbar there with your code :)
Cetin