Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
I have an ActiveX listbox (listbox1) on my worksheet ("FRONT"). I am creating the dynamic list source from values placed in worksheet "LISTS", starting at cell A2. As values are added to column A, the listbox needs to update. My goal, and I'm not sure it's possible, is to have the most recent addition to the list at the top of the listbox, with the older entries shifting down as new ones are added. The most recent event will always be inserted at cell A2 of worksheet "LISTS" (previous values shifting down). and the listbox updated hopefully with the same structure as the range in column A.
I have created this function ...
emsg is a string value representing the value that will be added to the dynamic list and ultimately the listbox.
I have no idea how to update the listbox. My guess is resulting in a "Method or data member not found error" in object highlighted in red.
I have created this function ...
Rich (BB code):
Function fn_updateaxlb(emsg As String)
With ws_lists
.Range("A2").Insert Shift:=xlDown
.Range("A2") = emsg
End With
ws_front.ListBox1.ListFillRange = ws_lists.Range("A2:A100")
End Function
emsg is a string value representing the value that will be added to the dynamic list and ultimately the listbox.
I have no idea how to update the listbox. My guess is resulting in a "Method or data member not found error" in object highlighted in red.