How to refer to a named range that is hard coded in a cell via VBA

Loun

New Member
Joined
Dec 29, 2012
Messages
28
Hi All,

Can anybody please help me? What should be a simple task has become one of major frustration!

Basically, I have a list of named ranges hard coded into cells.

I have a loop that then cycles through these named ranges.

What I want to do is when it gets to a certain one, let's say "TEST_123" , I want it to select that range.

So, if I was doing it manually I would simply use Range("TEST_123").Select

I suppose I'm looking for the equivalent of the INDIRECT function, that would be =INDIRECT(A1), with A1 being the active cell of the loop that contains the hard coded named range.

Thanks in Advance!
Lou
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Managed to figure it out.....Solution below incase anyone comes across the same issue as me in the future!

Application.Goto reference:= NamedRange

With NamedRange being your variable that refers to the indirect cell

Something so simple but yet so difficult to figure out!
 
Upvote 0

Forum statistics

Threads
1,203,483
Messages
6,055,679
Members
444,807
Latest member
RustyExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top