
Private Sub CommandButton167_Click()
With ActiveWorkbook
If .Path = "" Then Exit Sub
pdfFile = .Path & "" & Left(.Name, InStr(.Name, ".") - 1) & ".pdf"
End With
'
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=pdfFile _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End Sub |
Private Sub CommandButton167_Click()
fpath = "c: uacartella"
pdfFile = fpath & "" & Left(.Name, InStr(.Name, ".") - 1) & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=pdfFile _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End Sub |
Private Sub CommandButton167_Click()
fpath = "c: uacartella"
With ActiveWorkbook
pdfFile = fpath & "" & Left(.Name, InStr(.Name, ".") - 1) & ".pdf"
End With
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=pdfFile _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End Sub |
