Notifications
Clear all

Botao Salvar em PDF

2 Posts
2 Usuários
0 Reactions
740 Visualizações
(@holliman)
Posts: 0
New Member
Topic starter
 

Tenho um codigo para salvar em pdf, porem não consigo muda-lo para salvar em Paisagem.
Alguem pode me ajudar?

Utilizo esse codigo:

Private Sub cdmRELATORIOPDF_Click()

Application.DisplayAlerts = False
Dim EU
EU = "Agenda Telefônica"
    template_file = ActiveWorkbook.FullName
                 
           fileSaveName = Application.GetSaveAsFilename( _
        InitialFileName:=VBA.Strings.Format(EU) + ".PDF", _
        fileFilter:="Arquivo PDF (*.pdf), *.pdf")
         
                    
     If fileSaveName <> False Then
                  

            With ActiveSheet
               .ExportAsFixedFormat _
                Type:=xlTypePDF, _
                Filename:=SvInput, _
                OpenAfterPublish:=True
        End With

       End If
       

End Sub
 
Postado : 20/07/2016 12:08 pm
(@mprudencio)
Posts: 0
New Member
 

Configura a Planilha....em paisagem

 
Postado : 21/07/2016 9:49 am