07-27-2018
06:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-27-2018
06:20 AM
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