Error exportar PDF en word VBA
Tengo esta línea en mi macro
ActiveDocument.ExportAsFixedFormat pbFixedFormatTypePDF, ruta3 & "\" & Namek
Y me sale error
Sub Ex Dim base1 As String Dim base2 As String Dim ruta3 As String Dim Namek As String base1 = Environ("USERPROFILE") & "\Dropbox\DOCUMENTOS PERSONALES\CONSULTORIO\hISTORIAS CLINICAS\" base2 = Cells(4, "F") & " " & Cells(4, "G") & " " & Cells(4, "C") & " " & Cells(4, "D") & "-" & num ruta3 = base1 & base2 Namek = num & ("-") & Format(Now, "ddmmyyyy") & ".pdf" ActiveDocument.ExportAsFixedFormat pbFixedFormatTypePDF, ruta3 & "/" & Namek End Sub
1 Respuesta
Respuesta de Gabriel Pérez
-1