Hi All,
I've declared the below variable as follows:-
Global Const FilePathName As String = "X:\Sales\Tools\Available Distribution Tool\Company"
I've tried to replace multiple file paths with the above along with the rest of the file path, but when you step through the code it doesn't seem to like it.
This is an example of an instance where I've tried to replace FilePathName:-
ActiveWorkbook.SaveAs Filename:= _ "X:\Sales\Tools\Available Distribution Tool\Company\Stock Reports\" & "Stock By Owner ID" & ".xlsx", FileFormat:=51, _
CreateBackup:=False
to
ActiveWorkbook.SaveAs Filename:= _ FilePathName & "\Stock Reports\" & "Stock By Owner ID" & ".xlsx", FileFormat:=51, _
CreateBackup:=False
Have I declared the variable correctly so it will be recognised across all sub routines?
Any help would be appreciated!
I've declared the below variable as follows:-
Global Const FilePathName As String = "X:\Sales\Tools\Available Distribution Tool\Company"
I've tried to replace multiple file paths with the above along with the rest of the file path, but when you step through the code it doesn't seem to like it.
This is an example of an instance where I've tried to replace FilePathName:-
ActiveWorkbook.SaveAs Filename:= _ "X:\Sales\Tools\Available Distribution Tool\Company\Stock Reports\" & "Stock By Owner ID" & ".xlsx", FileFormat:=51, _
CreateBackup:=False
to
ActiveWorkbook.SaveAs Filename:= _ FilePathName & "\Stock Reports\" & "Stock By Owner ID" & ".xlsx", FileFormat:=51, _
CreateBackup:=False
Have I declared the variable correctly so it will be recognised across all sub routines?
Any help would be appreciated!