Sub PdfCreate()
Dim ws As Worksheet
Dim Fname As String
For Each ws In ActiveWorkbook.Worksheets
on Error Resume Next 'Continue if an error results
' Name generated PDF files based on the worksheet Index (i.e. 1,2,3, etc.)
' Fname = "Annex 1.1." & ws.Index & "_result"
' Another option is to use the worksheet name. This may cause errors if the worksheet
' name contains characters that are not allowed in file names.
Fname = ws.Name
ws.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=Fname, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False
Next ws
End Sub
'Excel, VBA' 카테고리의 다른 글
MS 워드에서 링크이미지를 문서안에 저장하기 (0) | 2018.06.26 |
---|---|
MS 워드에서 모든 하이퍼링크 제거하기 (VBA 사용) (0) | 2018.06.26 |
시트(sheet) 합치기 (0) | 2018.01.22 |