Hi I have a file that i need to be saved as a PDF but on the desktop every time and if I could make the file name the same as the content of a cell it will be great.
Bellow the code, this sabes as pdf but in the desktop of my pc, the file will be in diferents computers when the button with the macro is clicked
Sub PDF()
'
' PDF Macro
'
'
Range("B2").Select
ActiveCell.FormulaR1C1 = "NOMBRE"
Range("A1:I22").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:Documents and SettingsmyuserEscritorioNOMBRE.pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
Please help
Bellow the code, this sabes as pdf but in the desktop of my pc, the file will be in diferents computers when the button with the macro is clicked
Sub PDF()
'
' PDF Macro
'
'
Range("B2").Select
ActiveCell.FormulaR1C1 = "NOMBRE"
Range("A1:I22").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:Documents and SettingsmyuserEscritorioNOMBRE.pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End Sub
Please help