Sub Sheets2PDF()
Sheets(Array("Tabelle1", "Tabelle2", "Tabelle3")).Select
Selection.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=ThisWorkbook.Path & "\Mappe.pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
Sub Schaltfläche2_SpeichernUnter1()
Dim arrSheet As Variant
Dim strDatei As String
With ThisWorkbook
With .Sheets("Tabelle1")
strDatei:= ThisWorkbook.Path & "\" blabla & ".pdf"
End With
.Sheets(Array("Tabelle1", "Tabelle3")).Copy
End With
With ActiveWorkbook
.ExportAsFixedFormat Type:=xlTypePDF, Filename:=strDatei, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True
.Close savechanges:=False
End With
End SubHallo,
versuche es mal mit ActiveSheet statt Selection, also so..