L
Legacy 452653
Guest
I have a warehouse module that I am completing and have 22 listboxes that consist of 22 pick lines to click on.
With this in mind, I have created a Userform Activate that when ever an order has been raised it opens a "check order" userform and the VBA code below selects all 22 listboxes to verify any lines that are in the "RED".
However, if there is no data past "lstLookup", It indicates Run-time error '380', could not set the selected property. Invalid property value.
Is there a VBA coding that if there was no "data" or "Value" in any listbox to continue with the opening of the userform
Private Sub UserForm_Activate()
'Dim arrItems() As String
Dim bRB As MSForms.ReturnBoolean
lstLookup.Selected(0) = True
lstLookup_DblClick bRB
lstLookup1.Selected(0) = True
lstLookup1_DblClick bRB
I have put a "comma" in front of LstLookup6 to verify if there is no data in this list and sure enough debug indicate No7
'lstLookup6.Selected(0) = True
'lstLookup6_DblClick bRB
Thanks
Steve
With this in mind, I have created a Userform Activate that when ever an order has been raised it opens a "check order" userform and the VBA code below selects all 22 listboxes to verify any lines that are in the "RED".
However, if there is no data past "lstLookup", It indicates Run-time error '380', could not set the selected property. Invalid property value.
Is there a VBA coding that if there was no "data" or "Value" in any listbox to continue with the opening of the userform
Private Sub UserForm_Activate()
'Dim arrItems() As String
Dim bRB As MSForms.ReturnBoolean
lstLookup.Selected(0) = True
lstLookup_DblClick bRB
lstLookup1.Selected(0) = True
lstLookup1_DblClick bRB
I have put a "comma" in front of LstLookup6 to verify if there is no data in this list and sure enough debug indicate No7
'lstLookup6.Selected(0) = True
'lstLookup6_DblClick bRB
Thanks
Steve