Hi all,
I am trying to do a "calendar" display type using list boxes for each day - lbxDay1, lbxDay2,..., lbxDay30, lbxDay31 - in an Excel file.
I am OK to grab the data which will populate the list boxes but I still can't find a way to specify which list box I want to include the data in without being specific on the name.
I was wondering if there is any VBA code that would loop through the list boxes or something like a For/Next which would count 1 to 31 and pick the list box. Something like the code below:
Many thanks for your help!!
I am trying to do a "calendar" display type using list boxes for each day - lbxDay1, lbxDay2,..., lbxDay30, lbxDay31 - in an Excel file.
I am OK to grab the data which will populate the list boxes but I still can't find a way to specify which list box I want to include the data in without being specific on the name.
I was wondering if there is any VBA code that would loop through the list boxes or something like a For/Next which would count 1 to 31 and pick the list box. Something like the code below:
Code:
For i=1 to 31
lbxDayi.addItem("bla bla bla")
Next
Many thanks for your help!!
Last edited: