GRCArizona
Board Regular
- Joined
- Apr 24, 2010
- Messages
- 95
Hi -
I've created a Name using the 'Name Manager' and called it 'User'. The name is a Named Constant, so it doesn't refer to a range on the spreadsheet. In the 'Refers To' dialog box it has:
="GRC"
When I try to refer to this in VBA, I would expect to get
GRC
but what I'm getting is:
="GRC"
Here is the code I'm using:
Anyone know how to get rid of the equals sign (=) and the quotations ("")?
I've created a Name using the 'Name Manager' and called it 'User'. The name is a Named Constant, so it doesn't refer to a range on the spreadsheet. In the 'Refers To' dialog box it has:
="GRC"
When I try to refer to this in VBA, I would expect to get
GRC
but what I'm getting is:
="GRC"
Here is the code I'm using:
Dim sUser as String
sUser = ThisWorkbook.Names("User").RefersTo
sUser = ThisWorkbook.Names("User").RefersTo
Anyone know how to get rid of the equals sign (=) and the quotations ("")?