Tab through named ranges

jmersing

Well-known Member
Joined
Apr 14, 2004
Messages
887
I have 5 named ranges i.e. Range1, Range2 etc.

Is there a way I can tab through them by pressing the tab key or some other method.

I want the user to be able to go to their first named range, possibly make some adjust ments, and then go on to the next range and so on.

Thanks
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
No Andrew they are ranges, mostly named ranges i.e.
Range1
Range2
Range3 etc.

Is there a way I could loop through the sheet looking for any named range that begins with "range" and then use some kind of wildcard for the number. Because 1 sheet may have a different number of named ranges than the next. Here is what I have now:

Dim wsName As String
Dim RangeError As Boolean

Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
For Each ws In Worksheets
wsName = ws.Name
RangeError = False
Application.GoTo Reference:=ws.Range("range2")
If Not RangeError Then Application.Run Macro:="mymacro"
Next
On Error GoTo 0
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Exit Sub
Code:
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,952
Members
448,535
Latest member
alrossman

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