Boa tarde!!
Veja se ajuda.
Option Explicit
Sub AleVBA10026_PDF()
'ChDir "c:Temp" '<-Mude o lacal
Dim X
X = Application.GetSaveAsFilename(InitialFileName:="NomeDoArquivoPDF.pdf", _
FileFilter:="PDF files, *.pdf", _
Title:="Save PDF File")
If TypeName(X) = "Boolean" Then
Else
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=X, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End If
End Sub
Att
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 26/12/2013 10:57 am