tabname = Array(
"Tabelle1"
,
"Tabelle2"
)
Sheets(tabname).Visible =
True
With
Sheets(tabname)
ActiveSheet.ChartObjects(
"Diagramm 1"
).Activate
ActiveSheet.ChartObjects(
"Diagramm 1"
).
Select
.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ThisWorkbook.Path &
"\Mappe.pdf"
, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=
True
, _
IgnorePrintAreas:=
False
, _
OpenAfterPublish:=
True
End
With
End
Sub