ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to: reset the pull down menus to item 1 on start up? (https://www.excelbanter.com/excel-programming/271993-how-reset-pull-down-menus-item-1-start-up.html)

Brad Patterson

How to: reset the pull down menus to item 1 on start up?
 
I need to reset the previous selections on some pull down menus ... What is
the best way?

Thanks,

Brad.)


patrick molloy

How to: reset the pull down menus to item 1 on start up?
 
what do you mean by dropdown? a data validation cell, a
combobox on the sheet, a combobox on a userform?
With a combobox, set the ListIndex to -1 ( for no
selection) or to zero to set the first item


Sub ResetCombo()

With Sheet1.ComboBox1
.ListIndex = -1
.Value = "select..."
End With

End Sub


Patrick Molloy
Microsoft Excel MVP
-----Original Message-----
I need to reset the previous selections on some pull

down menus ... What is
the best way?

Thanks,

Brad.)



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com