Macro para que que se abra un PDF (sin autoguardar)
Actualmente tengo un macro que me abre un PDF y gaurda automáticamente. No quiero que guarde, sol oque abra:
'PDF
Ruta = ThisWorkbook.Path & "\"
If P = "Preferred Rate" And A = 3 Then
On Error Resume Next
Sheets("Preferred Rate 3").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Ruta & "Cotización a " & Trim(Cells(6, 3)) & " (Preferred Rate Plus 3 años).pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
Else
End If
If P = "Preferred Rate" And A = 5 Then
On Error Resume Next
Sheets("Preferred Rate 5").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Ruta & "Cotización a " & Trim(Cells(6, 3)) & " (Preferred Rate Plus 5 años).pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
Else
End If
If P = "Escalator" And A = 3 Then
On Error Resume Next
Sheets("Escalator 3").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Ruta & "Cotización a " & Trim(Cells(6, 3)) & " (Escalator Plus 3 años).pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
Else
End If
If P = "Escalator" And A = 5 Then
On Error Resume Next
Sheets("Escalator 5").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Ruta & "Cotización a " & Trim(Cells(6, 3)) & " (Escalator Plus 5 años).pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
Else
End If
If P = "Escalator" And A = 10 Then
On Error Resume Next
Sheets("Escalator 10").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Ruta & "Cotización a " & Trim(Cells(6, 3)) & " (Escalator Plus 10 años).pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
Else
End If