I have a named range that has a value of 4.
It is used for some looping in a procedure that works in the background, so really doesnt need to be seen by the end user/viewer of the spreadsheet. I wanted to hide the columns where I had stored a few of these values just for aesthetics.
When I do the VBA function that uses it no longer gets a value for that named range. I can toggle whether it works or not by hidiing or unhiding and rerunning the procedure- if hidden, the code stops when there is no value to be used and that causes a problem. when not hidden it works and I can walk through the code and see it working.
the value of 4 was a calculation based upon another named range, but for grins I switched it to a simple cell value of 4. same behavior occurs for the procedure.
I can think of other ways to make the range less notable- change font color to background color or use scroll area- or unhide/process/and then hide the worker-bee cells...
- but is there anywhere that explains limitations of referencing a named range like that? I am researching but finding more info regarding how the syntax would work...and was my diagnosis right that its a matter of the named range being hidden that is a problem- sure seems like it, but I also wonder that I havent hit this before.
It is used for some looping in a procedure that works in the background, so really doesnt need to be seen by the end user/viewer of the spreadsheet. I wanted to hide the columns where I had stored a few of these values just for aesthetics.
When I do the VBA function that uses it no longer gets a value for that named range. I can toggle whether it works or not by hidiing or unhiding and rerunning the procedure- if hidden, the code stops when there is no value to be used and that causes a problem. when not hidden it works and I can walk through the code and see it working.
the value of 4 was a calculation based upon another named range, but for grins I switched it to a simple cell value of 4. same behavior occurs for the procedure.
I can think of other ways to make the range less notable- change font color to background color or use scroll area- or unhide/process/and then hide the worker-bee cells...
- but is there anywhere that explains limitations of referencing a named range like that? I am researching but finding more info regarding how the syntax would work...and was my diagnosis right that its a matter of the named range being hidden that is a problem- sure seems like it, but I also wonder that I havent hit this before.