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
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
I have some rows that I want to hide in my spreadsheet, I also have
checboxes within those rows to hide. When I hide the rows, the checkboxes remain. I know if i use the checkboxes from the control menu I could change the properties to allow it to be hidden with the cell, however size of the program is an issue and the forms objects are smaller. Is there code like checkbox1.visible = false i can run with me hide rows macro, or some other formatting property i am missing. TIA --- Message posted from http://www.ExcelForum.com/ |
#2
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
The problem is that the checkbox is a shape...
Sheets("Sheet1").Shapes("Check Box 1").Visible = False K --- Message posted from http://www.ExcelForum.com/ |
#3
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
|
#4
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
Another question, how would you put this line of code in a for loop,
ex: For i = 1 To 10 Sheets("Sheet1").Shapes_(\"Check_Box\"_&_i)_.Visib le = 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/ |
#5
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
One way:
dim i as long for i = 1 to 10 Sheets("Sheet1").Shapes("Check Box " & i).Visible = False next i I'm not sure what the backslashes and underscores do, though. "bg18461 " wrote: Another question, how would you put this line of code in a for loop, ex: For i = 1 To 10 Sheets("Sheet1").Shapes_(\"Check_Box\"_&_i)_.Visib le = 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 |
#6
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
|
#7
|
|||
|
|||
Hiding Checkbox from "Forms" Toolbar
Just the one from yesterday.
http://groups.google.com/groups?thre...533E%40msn.com "bg18461 " wrote: any hints on my above question... --- Message posted from http://www.ExcelForum.com/ -- Dave Peterson |
Thread Tools | |
Display Modes | |
|
|