Message 1 of 3
iLogic to Change Active Sheet Format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello-
I have multiple sheet formats for my title blocks.
I use a form to select the size and style sheet.
Mu current code will add a sheet with the required Sheet format but I need to find a way to modify this code to change the Sheet Format on the active sheet.
I have looked everywhere on this forum and I would appreciate any help.
Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument Dim oFormat As SheetFormat If Parameter.Value("SheetSize") = "B" And Parameter.Value("TBStyle") = "VERTICAL" Then oFormat = oDrawDoc.SheetFormats.Item("B VERTICAL") Dim oSheet As Sheet oSheet = oDrawDoc.Sheets.AddUsingSheetFormat(oFormat) End If