Excel VBA - for each label / user form -
i have excel userform , on have several labels, of on frame.
is following possible?
for each label [that on frame] [code] next label if yes, how do that? or can group of them , control them members of group like
for each label in [groupname] [code] next label ? if yes, how do that? tried group them, no success.
i userform serve user input interface dashboard-kind of thing on too... of course easier on worksheet, couldn't make nice , userform-like, you? (i.e. run small window without menu or other area of "userform".)
try looping labels within form:
for each ctrl in me.controls if typename(ctrl) = "label" debug.print ctrl.name end if next ctrl and looping labels within frame (name frame1 in case)
for each ctrl in me.frame1.controls if typename(ctrl) = "label" debug.print ctrl.name end if next ctrl
Comments
Post a Comment