The attached workbook has 2 ranges defined with scope Sheet3.
The range bbb refers to =Sheet3!$E$4
whilst the range aaa refers to =Sheet1!$E$4
There is a macro in there which attempts to print the values of each of these:
Debug.Print Worksheets(“Sheet3”).Range(“bbb”).Value
Debug.Print Worksheets(“Sheet3”).Range(“aaa”).Value
The former works fine, the latter gives a 1004 runtime error.
So how does one get the value of the aa range into a macro?