#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo Boxes

I have created multiple worksheets with the first being used as a men
page, this has a Combo Box with names that when a selected name i
clicked, takes you to that persons worksheet.

This works fine except that when you come back to the menu page, th
Combo Box has the last persons name that you selected highlighted, bu
you can't reselect the same person, you have to select a different nam
for it to work!!

Is there a way around this??

Any help appreciated thanks...
cheers
Graha

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Combo Boxes

You can have the combo box's Listindex be set back to -1 when something is selected and the correct page is activated so nothing is selected when you return to the menu page.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Combo Boxes

Just add this to the sheet that the combobox is on in the worksheet
activate_event:
'change combobox1 to the name of your combobox

Combobox1.value = ""

"GrahamD" wrote in message
...
I have created multiple worksheets with the first being used as a menu
page, this has a Combo Box with names that when a selected name is
clicked, takes you to that persons worksheet.

This works fine except that when you come back to the menu page, the
Combo Box has the last persons name that you selected highlighted, but
you can't reselect the same person, you have to select a different name
for it to work!!

Is there a way around this??

Any help appreciated thanks...
cheers
Graham


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Combo Boxes

If you use Bob's technique and set the ListIndex in the click event, you
might want to stop the combox click event being fired again when you set
ListIndex to -1. This sort of thing shows the basic principle

Dim fReEntry As Boolean

Private Sub ComboBox1_Change()

If Not fReEntry Then
fReEntry = True
MsgBox ComboBox1.Value
ComboBox1.ListIndex = -1
End If
fReEntry = False

End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Bob Umlas, Excel MVP" wrote in
message ...
You can have the combo box's Listindex be set back to -1 when something is

selected and the correct page is activated so nothing is selected when you
return to the menu page.


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
Getting Combo boxes to change options based on other Combo boxes. Ancient Wolf New Users to Excel 1 March 27th 09 06:29 PM
combo boxes CDnook Excel Discussion (Misc queries) 1 February 20th 09 07:48 PM
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
Questions on combo boxes and list boxes. Marc New Users to Excel 1 March 14th 06 09:40 AM
2 combo boxes Greg Excel Worksheet Functions 1 February 9th 05 11:33 AM


All times are GMT +1. The time now is 11: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"