Message 1 of 3

Not applicable
08-27-2014
04:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone,
Can someone tell me where is the mistake in following code:
Public Sub TestSelection()
Dim InvDoc As Document
Set InvDoc = ThisApplication.ActiveDocument
Dim oPartDoc As PartDocument
Set oPartDoc = InvDoc.ReferencedDocuments(1)
Call oPartDoc.Activate
End Sub
I have an assembly with two parts inside. I want to activate first of them (like Edit command in browser), but I got message "Method 'Activate' of object 'PartDocument' failed".
Solved! Go to Solution.