-1
I am creating a macro in Excel that selects a text and pastes in another tab of the spreadsheet and generates a . pdf automatically.
I want to try to make the user on another computer save this file or in the same path that the source sheet will be in or else appear to him the option to save. (I would like the first option because if he only has the second option he will have to do it repeatedly.
I can make the document generated in the VBA code below be saved in the source file folder or that it asks to save in a specific location?
Sub imprimirAG2P()
'
' imprimirAG2P Macro
' imprimir AG 2P
'
'
Range("A3").Select
ActiveCell.FormulaR1C1 = "AG1 2P"
Sheets("MEC - 111 - AGITATOR").Select
Range("G7").Select
ActiveCell.FormulaR1C1 = "AG1 2P"
Range("G8").Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"D:\00 - MEUS DOCUMENTOS\DOCUMENTOS\01 - DOC CONTROL\01 - FVI - FVM\01 - FVI\03 - FVI PRONTAS\FVI\AG1 2P.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Sheets("databank").Select
End Sub