Hallo,
wie müsste ich dieses Makro umschreiben damit er mir das letzte Blatt nie als pdf mitspeichert (letztes Blatt soll immer ausgelassen werden):
Sub CATMain()
Dim oDoc As Document
Dim DocName As String
Dim DocPath As String
Dim PDFPath As String
Set oDoc = CATIA.ActiveDocument
DocName = oDoc.Name
DocPath = oDoc.Path
PDFPath = DocPath & "\" & Left(DocName, Len(DocName) - 11) & ".pdf"
'Debug.Print "PDF Path: " & PDFPath
oDoc.ExportData PDFPath, "pdf"
End Sub
Vielen Dank im Voraus
Beste Grüße
Stefan
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP