![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Feb 2002
Location: Bristol, England
Posts: 39
|
you need a bit of code in the userform. eg
For p = 0 To ListBox1.ListCount - 1 If ListBox1.Selected(p) Then enter your code in here.... End If Next p |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 43
|
What is 'p'?
Is that where i put the item? |
|
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2002
Location: Bristol, England
Posts: 39
|
I'm just using it as a varible!
It could be anything, but is used in this to as the step counter in the FOR loop. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|