Featured Replies
Archivado
Este tema está ahora archivado y está cerrado a más respuestas.
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Este tema está ahora archivado y está cerrado a más respuestas.
Tengo problemas al convertir archivos de excel con nombres largos a pdf con el siguiente código.
Agradezco su colaboración.
Sub ImpPDF()
'
' ImpPDF Macro
'
'aqui agregamos la variable, y en la parte de Filename checa como agrego la variable
Año = Range("r1").Value
Sem = Range("Q1").Value
Nombre = Range("c17").Value
Range("C4:P59").Select
Range("P59").Activate
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
ThisWorkbook.Path & "/" & Año & " Sem " & Sem & Nombre & " " & ".pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
Range("B19").Select
End Sub