looping shapes

  • Thread starter Thread starter bg18461
  • Start date Start date
B

bg18461

how would you put this line of code in a for loop for shapes (saying
have 10 form check boxes), ex:

For i = 1 To 10
Sheets("Sheet1").Shapes("Check Box" & i).Visible = True
next i

I know this will not work, so how can i write the code to make it work
 
Oops.

For i = 1 To 10
Sheets("Sheet1").Shapes("Check Box " & i).Visible = True
Next i

If you haven't renamed the checkboxes, there's a space between the number and
the last X.

"Check Box 9"
for instance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top