In sheet1 I'm keeping a list of values that I want to display in a userform, with 10 "rows" of data. I have the userform labels set up so that
label11 corresponds to what's in A1 aka cells(1,1)
label12 corresponds to what's in B1 aka cells(1,2)
label13 corresponds to what's in C1 aka cells(1,3)
label21 corresponds to what's in A2 aka cells(2,1)
etc
through label103... for C10 / cells (10,3)
I know how to assign values from sheet1 to userform1.label1 by brute force / having trouble figuring out how to reference the labels programmatically, e.g. the nonsensical syntax below:
for R = 1 to 10
for C = 1 to 3
UserForm1.LabelRC = Cells(R,C)
next C
next R
any help with how to refer to the userform labels would be greatly appreciated
label11 corresponds to what's in A1 aka cells(1,1)
label12 corresponds to what's in B1 aka cells(1,2)
label13 corresponds to what's in C1 aka cells(1,3)
label21 corresponds to what's in A2 aka cells(2,1)
etc
through label103... for C10 / cells (10,3)
I know how to assign values from sheet1 to userform1.label1 by brute force / having trouble figuring out how to reference the labels programmatically, e.g. the nonsensical syntax below:
for R = 1 to 10
for C = 1 to 3
UserForm1.LabelRC = Cells(R,C)
next C
next R
any help with how to refer to the userform labels would be greatly appreciated