Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Listbox That Controls Second Listbox

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
14,390
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 20, 2008

The selection from a first listbox determines the data that populates a second listbox.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (wjj4832)

  • LoadSubcategories Code:

    Public Sub LoadSubcategories(strSubName As String)

    ufSelections.lbSubcategory.Cle­ar

    Range(strSubName).Offset(1, 0).Activate

    While ActiveCell.Value > " " ufSelections.lbSubcategory.Add­Item (ActiveCell.Value) ActiveCell.Offset(1, 0).Activate

    Wend

    Range(ufSelections.lbCategory.­Text).Activate

    End Sub

  • Click event for the first listbox:

    Private Sub lbCategory_Click()

    Call LoadSubcategories(lbCategory.T­ext)

    Range(lbCategory.Text).Activat­e

    End Sub

see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Hello wjj4832 thankyou for you video,but in my case when properly part of the code you show here on youtube to my project the compiler error I mark the following line of code:

    ufselections.ListBox2.Clear

    Thanks for your help!.

    

  • hello sir, excellent method. but the quality of recording is blur, could you please post the codes for this video or send to my mail thanks a lot

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more