Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Determine name of combo box

I have a combo box set up on a worksheet from the forms toolbar. I
need to write a macro for it, but first need the name of the combo
box. I've not been able to locate it in the visual basic editor. Can
anyone tell me how I can find the name of it, so I can incorporate it
in my macro?

Thanks,
Greg

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Determine name of combo box

Select it, and look in the Names box to the left of the formula bar.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Gig" wrote in message
oups.com...
I have a combo box set up on a worksheet from the forms toolbar. I
need to write a macro for it, but first need the name of the combo
box. I've not been able to locate it in the visual basic editor. Can
anyone tell me how I can find the name of it, so I can incorporate it
in my macro?

Thanks,
Greg



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Determine name of combo box

Right-click it. The name will appear in the Name Box, e.g. "Drop Down
1".

Hth,
Merjet


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Determine name of combo box

Click on it in excel.
Look at the Namebox (to the left of the formula bar)

You should see something like:
Drop Down 1
or
Drop Down 2
or...

I'm not sure what you're doing, but if you're running a macro that's called by
changing that dropdown, you don't need the name. Maybe you can do something
like:

Dim myDD as DropDown
set myDD = activesheet.dropdowns(application.caller)

Then you can do things based on that object.

msgbox mydd.name 'if you really want the name
or
msgbox mydd.topleftcell.address

Gig wrote:

I have a combo box set up on a worksheet from the forms toolbar. I
need to write a macro for it, but first need the name of the combo
box. I've not been able to locate it in the visual basic editor. Can
anyone tell me how I can find the name of it, so I can incorporate it
in my macro?

Thanks,
Greg


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Combo Box value to determine macro used Richhall[_2_] Excel Worksheet Functions 1 January 4th 08 01:28 PM
20 different numbers want excel to determine which combo add to x OCDN-IT Excel Discussion (Misc queries) 2 October 18th 07 10:26 PM
Excel VBA Combo Box Populating dependent on other combo box choices ikabodred Excel Programming 1 March 15th 06 03:16 PM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


All times are GMT +1. The time now is 09:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"