Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
clutsa
in reply to: ACEDeSmedt

I'll agree I can't find that option. Can you try this...

Dim Doc As DrawingDocument = ThisApplication.ActiveDocument
Dim MyArrayList As New ArrayList
For Each oSheet As Sheet In Doc.Sheets
	If oSheet.ExcludeFromPrinting Then 
		MyArrayList.Add(oSheet.Name)
		oSheet.ExcludeFromPrinting = False
	End If	
Next

'your code to export pdf here

For Each oSheet As Sheet In Doc.Sheets If MyArrayList.Contains(oSheet.Name) Then oSheet.ExcludeFromPrinting = True Next

 

If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates