If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
looping shapes
how would you put this line of code in a for loop for shapes (saying i
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. --- Message posted from http://www.ExcelForum.com/ |
#2
|
|||
|
|||
looping shapes
One from yesterday.
http://groups.google.com/groups?thre...533E%40msn.com "bg18461 " wrote: how would you put this line of code in a for loop for shapes (saying i 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. --- Message posted from http://www.ExcelForum.com/ -- Dave Peterson |
#3
|
|||
|
|||
looping shapes
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. "bg18461 " wrote: how would you put this line of code in a for loop for shapes (saying i 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. --- Message posted from http://www.ExcelForum.com/ -- Dave Peterson |
#4
|
|||
|
|||
looping shapes
Hey!
Yesterday's post had that extra space in it! Dave Peterson wrote: 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. "bg18461 " wrote: how would you put this line of code in a for loop for shapes (saying i 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. --- Message posted from http://www.ExcelForum.com/ -- Dave Peterson -- Dave Peterson |
#5
|
|||
|
|||
looping shapes
|
Thread Tools | |
Display Modes | |
|
|