You are on page 1of 1

Sub gerar_pdf()

Sheets("Relatório").Select

ActiveSheet.Range(Cells(2, 2), Cells(20, 13)).Select

Selection.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "/" & "Exemplo.pdf", , , False

MsgBox ("Arquivo salvo como: " & ThisWorkbook.Path & "/" & "Exemplo.pdf")

Cells(1, 1).Select

End Sub

You might also like