Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia VBA Macro for Selection from Active or Non Active Document

Status
Not open for further replies.

22555

Automotive
Joined
Dec 17, 2003
Messages
24
Location
US
Hi,

If I have 2 product documents open in current session, How do i select or switch between documents within the VBA?

SelectElement2 is used within active document

SelectElement4 is used within non active document

But In my case, I dont know whether selection will be in active document or non active document.

Thanks in Advance

Regards


 
Use SelectElement4. It allows selecting in non-active document, but can handle a tive document as well.

If I'm wrong then it's not possible to achieve with SelectElement... at all.
You can run a timer and check selection manually on every tick.
 
Thanks Little,

Yes When I use SelectElement4, It is not allowing me to select in Active Document.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top