I'm trying to reference a label within a form using a variable, then assigning a range reference for the caption of that label.
My userform is named "frmDriverWatch"
dname i the variable I'm having trouble with. How do I reference it properly within this code?
dnum = dnum + 1
dname = "driver" & dnum
refnum = refnum + 1
frmDriverWatch.dname.Caption = Sheets("Drivers").Range("$o$" & refnum)
Bookmarks