Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: MechMachineMan

Thanks for the info but I need this in VBA format. I was thinking it would be easy as:

 

 Sub main()

Dim oPDoc as PartDocument

Set oPDoc = ThisApplication.ActiveDocument

oPDoc.ActiveAppearance = "My Appearance" 'this is where I need help. how do you set the appearance using the name?

End sub 

 

the syntax I know is wrong for setting the appearance. What is the correct syntax? (assuming appearance exists and does not need to be created, although that bit of code would be nice too)