Here is my String array with a list of listbox names...
Public ListOfBoxes As String() = {"lstWords02", "lstWords03", "lstWords04", "lstWords05", _
"lstWords06", "lstWords07", "lstWords08", "lstWords09", _
"lstWords10", "lstWords11", "lstWords12", "lstWords13", _
"lstWords14", "lstWords15", "lstWords16", "lstWords17", _
"lstWords18"}
I would like to loop through each of the listboxes and run some code. my attempt below fails because lbx is a string, not a listbox.
For Each lbx As String In ListOfBoxes
lbx.Items.Add(SomeStringVariable)
Next
Any Ideas? Any help will be greatly appreciated. -Cam