excel - Editing multiple properties in userform -


i have userform 25 option buttons (optionbutton1, optionbutton2, etc..) want populate captions of each of these buttons information spreadsheet. i'm not sure of best code done.

for x = 1 25     optionbutton & x & .caption = range("a" & x) next x 

obviously won't work that's kind of want do. ideas?

you can this:

private sub userform_initialize()     dim x byte     'change sheet1 suit     thisworkbook.worksheets("sheet1")         x = 1 25             me.controls("optionbutton" & x).caption = .range("a" & x)         next x     end end sub 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -