-1
Good afternoon, I have this code on my spreadsheet.
Sub Imprimir()
Dim LocalPDF As String
'DEFINIR O LOCAL ONDE SERÁ SALVO O ARQUIVO
LocalPDF = ThisWorkbook.Path & "\" & Range("H5") & " - " & Range("C7")
'GERAR O ARQUIVO PDF
Planilha10.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=LocalPDF & ".pdf", _
OpenAfterPublish:=True
'LIMPAR OS REGISTROS
Range("B14:E19").Select
Selection.ClearContents
Range("C5").Select
Selection.ClearContents
End Sub
The spreadsheet has more pages, as I do to save only the first page?