RobBroekhuis
Technical User
In a recent post, Acron used a syntax for range designation that I hadn't seen before:
[Recipients]
instead of
range("Recipients"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Works like a charm, even though I can't seem to find an official reference to that syntax. I tried it right away in some of my code, and came across an oddity: I'm working on an active sheet ("summary"
, while a different sheet in the same workbook ("info"
has some named ranges (single cells, in this case) which contain general values I need to reference in my program.
Two of those values are: "stepRx1" and "tRx1"
They are defined exactly analogously (no difference obvious in the name-define form), but somehow they behave differently. When I break my code while executing,
?[tRx1] gives me the proper value, and ?[tRx1].address works fine too.
?[stepRx1] gives me 0 instead of its real value (11), and
?[stepRx1].address throws an error.
Any ideas on what may be causing the discrepancy?
The old syntax range("stepRx1"
works fine (but I like the square-bracket syntax better).
Rob
[Recipients]
instead of
range("Recipients"
Works like a charm, even though I can't seem to find an official reference to that syntax. I tried it right away in some of my code, and came across an oddity: I'm working on an active sheet ("summary"
Two of those values are: "stepRx1" and "tRx1"
They are defined exactly analogously (no difference obvious in the name-define form), but somehow they behave differently. When I break my code while executing,
?[tRx1] gives me the proper value, and ?[tRx1].address works fine too.
?[stepRx1] gives me 0 instead of its real value (11), and
?[stepRx1].address throws an error.
Any ideas on what may be causing the discrepancy?
The old syntax range("stepRx1"
Rob