I have set up a constant as follows
I get an invalid reference and code below highlighted
It would be appreciated if someone could correct this
Code:
Const C As String = .xlsm
Sub Open_Fies ()
Windows("M_ERT Sales(P).xls").Activate
Application.Run "'M_ERT Sales (P).xls'!Data_INPUT"
ActiveWorkbook.Close
Windows("M_ERT Sales (P)" & "C &").Activate
ActiveWorkbook.Close
Windows("Open Sales Data Files.xlsm").Activate
End Sub
I get an invalid reference and code below highlighted
Code:
Const C As String = .xlsm
It would be appreciated if someone could correct this