Newbie said:
Thanks a lot John!
It works fine! But what a tricky syntax!
Thanks again
Newbie,
You're welcome. Just for reference, VBA is tricky indeed, in some cases
the compiler will not require the "Name" property, it will assume it by
default. In other cases, like your example, the full syntax is the only
thing that will make it "happy".
If VBA wasn't tricky, it wouldn't be interesting.
John
Project MVP