VBA code go to specific location in embedded document

C

Charlotte

From Excel I'm opening an embedded OLE object (Word document). Once
the document is open, I need to be able to go to a location in the
document (preferably by keyword search). Is this possible?

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Range.Address = "$A$4" Then
Set Obj = Sheets("report").OLEObjects("Object 1")
Obj.Activate
End If
End Sub
 

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