Drop down list of range names in editor

EVisser

New Member
Joined
Dec 17, 2016
Messages
3
Hi,

Can someone please give me a hint?
I've specified quite some ranges in my worksheet. In my code I want to use the properties of some of those ranges, but is there a way to get a drop down list of the names of the ranges I've specified? Or an auto complete function just as there is for your variables.
Just typing the first part of the name and then Ctrl+Space doesn't show them, neither does Alt+Arrow down or something like that.

Many thanks in advance.

Edward
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I'm new to this forum, so just to be sure : do I ask this wrong question? In the wrong forum? Or does no one have the answer?
 
Upvote 0
This will give you a list of named ranges and their range addresses

Code:
[COLOR="Navy"]Sub[/COLOR] MG18Dec47
Range("A1").ListNames
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 
Upvote 0
Hi Mick,

Thanks for your reply. As a workaround this is already very useful.
However, I was looking for a way to get a suggestion/auto completion when I'm typing my code.
 
Upvote 0

Forum statistics

Threads
1,214,634
Messages
6,120,659
Members
448,975
Latest member
sweeberry

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