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

Hi bpWallis17,

 

You haven't declared oSheet.  Is your entire rule shown or have you cut some out of it?

 

The code doesn't know what oSheet is.  More than likely, you need something like this above what you've shown.

 

Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDrawDoc.Sheets.Item(1)

This is assuming you want to work on the first sheet of the document.

 


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies