ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   listbox (https://www.excelbanter.com/excel-programming/304762-re-listbox.html)

Tom Ogilvy

listbox
 
assume you have the previous selection in a variable sOldSelect

Dim sOldSelect as String


me.Listbox1.Value = sOldSelect

--
Regards,
Tom Ogilvy

"Cheryl" wrote in message
...
How do I use a listbox to display what was selected last when displaying a

record on a user form based on the contents of the record's cell. The
listbox is populated from a named range on a worksheet but now I need to
know how to display the selected drop down item. This userform can add,
change and delete records. When retrieving information from the rows to make
up a mult-tab form i can retrieve everything but what was originally
selected from the dropdown. is this a select case type of issue.. to put the
highlited selection visible but user still able to change it.






All times are GMT +1. The time now is 01:53 AM.

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