Hi all,
I have a form with a number of textboxes on it.
After they have been populated, any of them that are blank need to be invisible.
The next textbox also needs to be invisible,
The code i have that works fine is,
Code
If ws.Range("a4").Value = "" ThenMe.TextBox5.Visible = False
Me.TextBox6.Visible = False
Else
Me.TextBox5.Visible = True
Me.TextBox6.Visible = True
Me.TextBox5.Value = ws.Range("a4").Value
Me.TextBox6.Value = ws.Range("b4").Value
End If
'////////////////////
This works fine but as there are 90 or so textboxes on this form i don't want to have to type this out loads of times.
Is there a loop that i can use which will achieve the same thing.
Thanks in advance