Programmatically Select Assembly Component in VBA

Programmatically Select Assembly Component in VBA

nannerdw
Advocate Advocate
1,898 Views
1 Reply
Message 1 of 2

Programmatically Select Assembly Component in VBA

nannerdw
Advocate
Advocate

I'm trying to select an assembly component using

 

ThisApplication.ActiveDocument.SelectSet.Select (compOcc)

where "compOcc" is an object of type "ComponentOccurrence," but it gives me an error "438 Object doesn't support this property or method."

0 Likes
Accepted solutions (1)
1,899 Views
1 Reply
Reply (1)
Message 2 of 2

nannerdw
Advocate
Advocate
Accepted solution

I figured it out.  I had to add the "Call" statement.

Call ThisApplication.ActiveDocument.SelectSet.Select(compOcc)

 

0 Likes