Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using VB to change Combo box selection


From within a VBA macro, I want to select an option from within a
dropdown list (combobox), so that once the macro has run, the combo box
is reset ready for the next use.

The combo box is populated from a static range within the same
worksheet.

For example:

Choose Name
Andrew
Brian
Charlotte
Diana

I want the Combo Box to be set by the macro to "Choose Name".

I have checked through the info on the forum and some is relevant but I
cannot get syntax etc quite right. I get error messages that say Object
not defined etc. (Still learning!). I have tried Dim cb As Object, and
various other futile forays into the unknown.

The Combo box appears to be named "DropDown2" - automatically.

Would be very grateful for a little help!

Thanks

Richard Clayton


--
Richard Clayton
------------------------------------------------------------------------
Richard Clayton's Profile: http://www.excelforum.com/member.php...o&userid=15122
View this thread: http://www.excelforum.com/showthread...hreadid=267610

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
Combo box selection will not calculate Perrysbox2 Excel Discussion (Misc queries) 0 June 11th 09 07:12 PM
Multiple Selection Combo Box Ivor Davies Excel Discussion (Misc queries) 8 April 27th 09 12:43 PM
multiple selection in combo box jen_writer Excel Discussion (Misc queries) 2 January 19th 07 09:05 PM
Combo box wont change selection? Simon Lloyd[_469_] Excel Programming 3 June 9th 04 11:59 AM
combo box close on selection help!! Simon Lloyd[_467_] Excel Programming 3 May 25th 04 09:56 PM


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