J
Jack Gillis
I have designed a form with 26 textboxes. Each is name in the form of
txtName, txtAmount and so forth.
I would like to lock these boxes with a few lines of code without having
to put a line in for each box. Maybe something in the order of
For each TextBox in Worksheet
.locked = true.
but I haven't been able to figure out how to do it. I found a 'For
Each' example in Help but it appears not to apply to text boxes.
I know I can do it with individual lines for each box but had much
rather use a looping method. Then, if I added some more text boxes I
wouldn't have to put additional lines in the code to lock each box.
Can anyone suggest a way to do this?
Thank you very much.
txtName, txtAmount and so forth.
I would like to lock these boxes with a few lines of code without having
to put a line in for each box. Maybe something in the order of
For each TextBox in Worksheet
.locked = true.
but I haven't been able to figure out how to do it. I found a 'For
Each' example in Help but it appears not to apply to text boxes.
I know I can do it with individual lines for each box but had much
rather use a looping method. Then, if I added some more text boxes I
wouldn't have to put additional lines in the code to lock each box.
Can anyone suggest a way to do this?
Thank you very much.