SliderJeff
Board Regular
- Joined
- Oct 5, 2016
- Messages
- 63
Hey gang,
I've run into an issue which would be easily solved with a #include of a .H file in C, but which I can't figure out how to do in VBA. Here's what I have.
Script.XLSM
Output.XLSM
I need to use/reference that same constant in Sheet1 of Script.XLSM.
Can someone lend a hand as to how to accomplish this? Thanks!
Regards,
Jeff
I've run into an issue which would be easily solved with a #include of a .H file in C, but which I can't figure out how to do in VBA. Here's what I have.
Script.XLSM
Microsoft Excel Objects
Sheet1 -> Contains a key macro to be copied into the Output.XLSM file on Sheet1
ThisWorkbook -> No content
Modules
Module1 -> Contains my main script with subs and functions
Output.XLSM
Microsoft Excel Objects
Sheet1 -> Contains a copied version of the macro stored in Script.XLSM("Sheet1")
ThisWorkbook -> No content
Modules
None
So, inside Module1 of Script.XLSM, I have a constant declared as, for example:
Code:
Public const MyConstant As 23
I need to use/reference that same constant in Sheet1 of Script.XLSM.
Can someone lend a hand as to how to accomplish this? Thanks!
Regards,
Jeff
Last edited: