Provide a range selection tool/utility to the user in Excel VBA

calendar_today Asked Dec 22, 2010
thumb_up 10 upvotes
history Updated April 16, 2026

Question posted 2010 · +8 upvotes

I am trying to develop a user form in Excel 2007 VBA and want to provide a user with a range selection icon, something like this: Range Selection Icon

However, I have not been able to find any built-in form design tool or any online tool which provides this or at least gives me an idea. If anyone has any idea about this, I will greatly appreciate their help.

Accepted answer +10 upvotes

This control is called RefEdit control.

To use it, you have to first add it to the toolbox window by right-clicking in the toolbox window and selecting Additional Controls…. Then you select RefEdit.Ctrl and close the dialog.

Now you can select it in the toolbox and place it on your form.

Top excel-vba Q&A (6)

+10 upvotes ranks this answer #64 out of 136 excel-vba solutions on this site .