Hi Folks,
Hope someone out there will knwo the answer to this, i'm help referenced and googled out my head with this one.
i wasnt to create a loop to change object properties in my userform, the object type is always the same, i.e. a textbox, but the name is variant, i.e. textbox1, textbox2, textbox3 and so on
i've tried the fllowing (p.s. i don't know how to insert the code correctly on this page, so I apologise in advance)
RepeatMe()
Dim BNa as string
Dim BNo as intiger
Dim iName as variant
BNa = "TextBox"
BNo =1
iName = BNa & BNo
do while BNo < 25
iName.enable = true
iName.visible = true
BNo = BNo + 1
loop
end sub
i keep getting the following error, when i try this code "Object Required" i dopn't know if what i am trying to do is possible, i hope it is, any help would be brilliant. I'm using windows xp sp2 with xl2003
thanks in advance guy's
Gman
Hope someone out there will knwo the answer to this, i'm help referenced and googled out my head with this one.
i wasnt to create a loop to change object properties in my userform, the object type is always the same, i.e. a textbox, but the name is variant, i.e. textbox1, textbox2, textbox3 and so on
i've tried the fllowing (p.s. i don't know how to insert the code correctly on this page, so I apologise in advance)
RepeatMe()
Dim BNa as string
Dim BNo as intiger
Dim iName as variant
BNa = "TextBox"
BNo =1
iName = BNa & BNo
do while BNo < 25
iName.enable = true
iName.visible = true
BNo = BNo + 1
loop
end sub
i keep getting the following error, when i try this code "Object Required" i dopn't know if what i am trying to do is possible, i hope it is, any help would be brilliant. I'm using windows xp sp2 with xl2003
thanks in advance guy's
Gman