Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
rosemary
 
Posts: n/a
Default Help a newbie in a ComboBox fix.....


Hi,

I'm experiencing some difficulty with the ComboBox macro. It works
correctly when I put it into the document (saving the document poses no
problems). After I close the program and then reopen it, I have to go
into each and every combobox and run it again! How can I avoid having
to do this each time?

Thanks,
Rosemary


--
rosemary
------------------------------------------------------------------------
rosemary's Profile: http://www.excelforum.com/member.php...o&userid=25042
View this thread: http://www.excelforum.com/showthread...hreadid=385659

  #2   Report Post  
bhofsetz
 
Posts: n/a
Default


Rosemary,
Post your code, or an example of the code you are using for the
combo boxes and we will be able to help you better.


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=385659

  #3   Report Post  
rosemary
 
Posts: n/a
Default


Private Sub ComboBox1_Change()
ComboBox1.List = Array("1", "2", "3", "4", "5+")
End Sub



Thanks!


--
rosemary
------------------------------------------------------------------------
rosemary's Profile: http://www.excelforum.com/member.php...o&userid=25042
View this thread: http://www.excelforum.com/showthread...hreadid=385659

  #4   Report Post  
bhofsetz
 
Posts: n/a
Default


Put your fill code in a combobox get focus event handler rather than a
combobox change event handler and that should do the trick

Private Sub ComboBox1_GotFocus()
ComboBox1.List = Array("1", "2", "3", "4", "5+")
End Sub

HTH


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=385659

  #5   Report Post  
rosemary
 
Posts: n/a
Default


Thank you so much! That did the trick. (Thanks for being patient with
a complete newbie, too.)

Rosemary


--
rosemary
------------------------------------------------------------------------
rosemary's Profile: http://www.excelforum.com/member.php...o&userid=25042
View this thread: http://www.excelforum.com/showthread...hreadid=385659



  #6   Report Post  
bhofsetz
 
Posts: n/a
Default


You are welcome Rosemary, glad it helped. We all have to start
somewhere.

Brendon


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=385659

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
Newbie combobox ordeal. alex.k New Users to Excel 6 July 3rd 05 11:29 PM
creating a combobox dynamically on an excel sheet gupt New Users to Excel 8 June 7th 05 04:07 AM
Using a ComboBox for Data Entry into a Cell Jon Turner Excel Worksheet Functions 4 May 27th 05 09:53 PM
Combobox M Excel Discussion (Misc queries) 1 March 7th 05 10:29 AM
Getting combobox dropdowns to appear on a userform when tabbed to. DO Excel Discussion (Misc queries) 0 March 2nd 05 02:11 PM


All times are GMT +1. The time now is 01:05 PM.

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

About Us

"It's about Microsoft Excel"