fantabulator
Member
Hello all,
I have found a macro to use msoFileDialogFolderPicker to have the user choose a file path. I can make the file path appear in a cell. I want the file path to stay constant unless changed by the user and I don't want the user to have to choose a file path each time they save a report. What I need is to know how to modify the following code to accept cell path as part of the file path name. I can't seem to get the syntax right.
Dim fName As String
With ActiveSheet
fName = .Range("J3").Value & .Range("J28").Value & .Range("K28").Value
End With
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\My Documents\" & fName, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub
I would like the "C:\My Documents" portion to come from the information inputted by the user and stored in cell L 28 (cell 28,9)
I have found a macro to use msoFileDialogFolderPicker to have the user choose a file path. I can make the file path appear in a cell. I want the file path to stay constant unless changed by the user and I don't want the user to have to choose a file path each time they save a report. What I need is to know how to modify the following code to accept cell path as part of the file path name. I can't seem to get the syntax right.
Dim fName As String
With ActiveSheet
fName = .Range("J3").Value & .Range("J28").Value & .Range("K28").Value
End With
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\My Documents\" & fName, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub
I would like the "C:\My Documents" portion to come from the information inputted by the user and stored in cell L 28 (cell 28,9)