Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, i am heaving difficulties with iLogic.
i wrote a rule in a drawing that checks a certain parameter, and if conditions are met it excludes a sheet from count and print.
but it does not seem to work.
here is the code:
oDoc= ThisApplication.ActiveDocument
Dim oSheet As Sheet
'If ActiveSheet.Name = "Jamb_typeG"
If Parameter("D1.ipt.f1_type") < 5 mm Then
For Each oSheet In oDoc.Sheets
If (ActiveSheet.Name = "Jamb_typeG") Or (ActiveSheet.Name = "Jamb_typeG:2")
oSheet.ExcludeFromCount = True
oSheet.ExcludeFromPrinting = True
End If
If (ActiveSheet.Name = "Jamb_typeM") Or (ActiveSheet.Name = "Jamb_typeM:2")
oSheet.ExcludeFromCount = False
oSheet.ExcludeFromPrinting = False
End If
Next
End If
Solved! Go to Solution.