Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a rule to change the sheetsize of an idw and to place the right border and titleblock in it.
But when i rebuild this rule (which works fine in the original file) for another client, the rule suddenly gives me an error (see attachment).
Here is the rule:
trigger = iTrigger0 Formaat_selectie = InputListBox("Kies gewenste papierformaat", MultiValue.List("Formaat_selectie"), Formaat_selectie, Title := "Formaat selectie venster", ListName := "Kies 1 van de volgende formaten") 'zoom all ThisApplication.ActiveView.Fit If Formaat_selectie = "BoKa A0" Then ActiveSheet.ChangeSize("BoKa_A0", moveBorderItems := True) ActiveSheet.Border = "Border BoKa A0" ActiveSheet.TitleBlock = "Boskalis title block A0" Stand="Landscape" ElseIf Formaat_selectie = "BoKa A1" Then ActiveSheet.ChangeSize("BoKa_A1", moveBorderItems := True) ActiveSheet.Border = "Border BoKa A1" ActiveSheet.TitleBlock = "Boskalis title block A1" Stand="Landscape" ElseIf Formaat_selectie = "BoKa A2" Then ActiveSheet.ChangeSize("BoKa_A2", moveBorderItems := True) ActiveSheet.Border = "Border BoKa A2" ActiveSheet.TitleBlock = "Boskalis title block A2" Stand="Landscape" ElseIf Formaat_selectie = "BoKa A3" Then ActiveSheet.ChangeSize("BoKa_A3", moveBorderItems := True) ActiveSheet.Border = "Border BoKa A3" ActiveSheet.TitleBlock = "Boskalis title block A3" Stand="Landscape" ElseIf Formaat_selectie = "BoKa A4" Then Stand="Portrait" ActiveSheet.ChangeSize("BoKa_A4", moveBorderItems := True) ActiveSheet.Border = "Border BoKa A4" ActiveSheet.TitleBlock = "Boskalis title block A4" End If 'Stand = InputListBox("selecteer papier stand", MultiValue.List("Stand"), Stand, Title := "Stand", ListName := "Stand") 'PageOrientationTypeEnum Enumeration kLandscapePageOrientation = 10242 kPortraitPageOrientation = 10243 'set orientation based on user input If Stand = "Landscape" Then ThisApplication.ActiveDocument.ActiveSheet.Orientation = kLandscapePageOrientation Else ThisApplication.ActiveDocument.ActiveSheet.Orientation = kPortraitPageOrientation End If InventorVb.DocumentUpdate()
Anyone having an idea what goes wrong?
Solved! Go to Solution.