Excel VBA newbie ... please be gentle.

I have a userform with 40 textboxes, however depending upon the value of a given cell - some of these textboxes should be hidden, eg A1="10", textboxes 11-40 should be hidden.

I need to do something like

maxTB = range("A1").Value
for I in maxTB+1 to 40
textboxI.hidden
next

but for the life of me I can't find anything in any forum or helpsite.

Anyone ?