Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, what i'm trying to do is this. I have some dropdown boxes from
the forms toolbar, not the control toolbar, in my sheet. I have these boxes pulling from another sheet that i set up as a database. By using the index command, i am able to pull various information from the database sheet depending on the subject selected in the dropdown box. What I want to do is set up a command button that will reset all the dropdown boxes back to empty when pressed. I have searched for days and can not figure this out. Please help! ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Okay, i *FINALLY* got it to work. This is what i did:
Sub Button23_Click() Dim db As ControlFormat Set db = ActiveSheet.Shapes("Drop Down 9").ControlFormat db.ListIndex = 0 End Sub If there's a better way, i'm always ready to learn. Thanks. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Button23_Click()
Dim drpdwn as DropDown for each drpdwn in Activesheet.Dropdowns drpdwn.Listindex = 0 Next End Sub for a single dropdown. Sub Button23_Click() Activesheet.DropDowns("Drop Down 9").ListIndex = 0 End Sub -- Regards, Tom Ogilvy Aechelon wrote in message ... Okay, i *FINALLY* got it to work. This is what i did: Sub Button23_Click() Dim db As ControlFormat Set db = ActiveSheet.Shapes("Drop Down 9").ControlFormat db.ListIndex = 0 End Sub If there's a better way, i'm always ready to learn. Thanks. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Clearing cells without clearing formulas | Excel Discussion (Misc queries) | |||
clearing "read only" from worksheet | Excel Discussion (Misc queries) | |||
Clear a worksheet without clearing formulas? | Excel Discussion (Misc queries) | |||
using dropdowns | Excel Discussion (Misc queries) | |||
Worksheet clearing Macros? | Excel Discussion (Misc queries) |