Skip to content

Commit 23794d2

Browse files
TATIANA DE OLIVEIRA COELHOTATIANA DE OLIVEIRA COELHO
TATIANA DE OLIVEIRA COELHO
authored and
TATIANA DE OLIVEIRA COELHO
committed
Script para salvar planilha no formato .pdf
1 parent 6553121 commit 23794d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

savePDF.cls

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Private Sub SaveAsPdf()
2+
3+
Dim PDFFilename As Variant
4+
PDFFilename = Application.GetSaveAsFilename(InitialFileName:="yourfilename", _
5+
FileFilter:="PDF, *.pdf", _
6+
Title:="Salvar como PDF")
7+
ChDir "YOUR DIRECTORY"
8+
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
9+
PDFFilename, Quality:=xlQualityStandard, _
10+
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
11+
True
12+
End Sub

0 commit comments

Comments
 (0)