![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 43
|
I've produced a userform with a drop-down list with items such as chair, table, bed etc. When i select one of them (eg. chair) , and press the command button to select the item, it flashes up with all of them and goes back to the original chosen one.
HELP! Whats going on?! How do i get them to show up on the spreadsheet individually??!!! |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Do you have any code on the userform pertaining to the list? I'm guessing that you may have something in the listbox "change" event that resets the selection.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 43
|
At the moment all ive got is a userform with a drop down list which has got all my item headings within it.
Im now trying to produce a command button that when you select from the drop down list the item and press the command butoon it takes you to that item in the spreadsheet. This isnt working at the moment! |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Put this code on your userform:
Change "ListBox1" to whatever the name of your listbox is. I've assumed that the active worksheet will house the data that is in the listbox. HTH |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I may have picked up your post wrong. That previous code was for a "Listbox", I think that you may have a "ComboBox" (dropdown list).
Use this code if you have a combobox (put it on the userform):
Change "ComboBox1" to whatever the name of your combobox is. |
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Posts: 43
|
Whats oRange ??
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Apr 2002
Location: Redmond, WA
Posts: 636
|
IMO I think Frankie needs to call 1-888-SOLPROV. They should have an answer for him/her.
|
|
|
|
|
|
#8 |
|
New Member
Join Date: Apr 2002
Posts: 43
|
also; where do i put this code.
Ive got a 'private Sub ComboBox1_Change ()' ive also got another heading; Command button which is 'private Sub CommandButton1_Click ()' |
|
|
|
|
|
#9 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Quote:
|
|
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Quote:
To be honest, it sounds like you're going to need to get an Excel VBA book to get you started. Have a look at some of MrExcel's recommendations: http://www.mrexcel.com/book.shtml |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|