ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving combo box list when closed? (https://www.excelbanter.com/excel-programming/274755-saving-combo-box-list-when-closed.html)

Josh Ashcraft

Saving combo box list when closed?
 
I need my userform comboboxes to keep their list values
when the program is closed, and the selected value in the
combobox needs to saved too. So when i open the workbook,
the comboboxes keep their lists from before, and whichever
value was selected from the combobox stays in there, how
would i do that?
thanks in advance
Josh Ashcraft

Tom Ogilvy

Saving combo box list when closed?
 
Set the row source manually in the VBE. If you are not getting your data
from the worksheet, then you would need to run code to repopulate the lists.
Likewise, you would need to store the selected value in a cell or somewhere
else, and then reset it with code, possibly in the initialize event.

--
Regards,
Tom Ogilvy


"Josh Ashcraft" wrote in message
...
I need my userform comboboxes to keep their list values
when the program is closed, and the selected value in the
combobox needs to saved too. So when i open the workbook,
the comboboxes keep their lists from before, and whichever
value was selected from the combobox stays in there, how
would i do that?
thanks in advance
Josh Ashcraft





All times are GMT +1. The time now is 02:00 AM.

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