OLE Class Microsoft Word !! Problems

W

Warrio

Hi,

I createad an Unbound Object Frame and I put in it a Microsoft Word
document. I'm trying to switch document everytime I click on a button but
nothing is working .... Can someone tell how can I do that, please ?

The code :

Private Sub changeDoc_Click()
docWord.SourceDoc = "c:\test2.doc"
docWord.SourceItem = ""
docWord.OLETypeAllowed = acOLELinked
docWord.Action = AcOLEUpdate
End Sub

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top