Hi There
The question I have is a quick one to do with the VBA object model. I have created a defined name/range on a worksheet called "bob", pointing to a single cell. I have a bunch of other name/ranges set up on this worksheet, which I didn't create. All the other ones work perfectly. The new one created by me does not work perfectly in the following way:
I should be able to refer to the contents of this cell by using either of the following statements:
(worksheet object).Names("bob").RefersToRange.Value (worksheet object).Range("bob").Value
However, only the 2nd statement, referring to the Range works for some reason. The first one can't find the name in the names list.
My questions are:
1) What is the difference, if any, between a name and a range?
2) Is this something to do with the global / local scope of my name/range?
3) How were the other name/ranges created on the sheet so that they appear in both the worksheets name and range list?
Many thanks in advance for you assistance :)
Mike