NicholasP
Active Member
- Joined
- Nov 18, 2006
- Messages
- 291
This is piece of code that has worked for me for over a year and now it is not working.
I believe the code is correct, but the VB excel run-time error 1004 is stating:
"Cannot run the macro "Prices.xlsm'!cs_Port'. The macro may not be available in this workbook or all the macros may be disabled."
It appears to me that the second " is missing in that message for some reason, i.e. -- "Prices.xlsm'!cs_Port' instead of "Prices.xlsm'!cs_Port'"
using the immediate window shows cs__Port = 'Prices.xlsm'!cs_Port
I'm at a bit of a loss because I have code that is exactly similar (diff variables) and that code is working...
Any help would be greatly appreciated, I'm hoping this is just a weird typo?
Code:
cs__Port = "'Prices.xlsm" & "'!cs_Port"
Application.Run cs__Port
I believe the code is correct, but the VB excel run-time error 1004 is stating:
"Cannot run the macro "Prices.xlsm'!cs_Port'. The macro may not be available in this workbook or all the macros may be disabled."
It appears to me that the second " is missing in that message for some reason, i.e. -- "Prices.xlsm'!cs_Port' instead of "Prices.xlsm'!cs_Port'"
using the immediate window shows cs__Port = 'Prices.xlsm'!cs_Port
I'm at a bit of a loss because I have code that is exactly similar (diff variables) and that code is working...
Any help would be greatly appreciated, I'm hoping this is just a weird typo?
Last edited: