Message 1 of 3

Not applicable
03-22-2017
05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I want to change the sheet size by macro.
But what ever I do, it changes only height... and width only after a second run of the macro.
How can I get the code run both size at once?
The code I use:
Dim oSheets As Sheet
Dim oDrawingDoc As DrawingDocument
Set oDrawingDoc = ThisApplication.ActiveDocument
Set oSheets = oDrawingDoc.ActiveSheet
oSheets.Size = DrawingSheetSizeEnum.kCustomDrawingSheetSize
oSheets.Height = 160
oSheets.Width = 250
Solved! Go to Solution.