Message 1 of 6
Rule works when "run rule" but throws error when triggered "After open document"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
This simple rule does what I want when I right-click and "run rule" but I get errors when I set it to a triggered run "After Open Document" on drawings.
I want it to activate sheet 1 and zoom to fit. Any ideas?
'open sheet 1
ThisApplication.ActiveDocument.Sheets.Item(1).Activate
'zoom to fit
ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomallCmd").Execute