A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hiding Checkbox from "Forms" Toolbar



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2004, 05:17 PM
bg18461
external usenet poster
 
Posts: n/a
Default 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  
Old June 14th, 2004, 05:38 PM
kkknie
external usenet poster
 
Posts: n/a
Default 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  
Old June 14th, 2004, 09:47 PM
bg18461
external usenet poster
 
Posts: n/a
Default Hiding Checkbox from "Forms" Toolbar

You are awesome kkknie, thanks, it works .


---
Message posted from http://www.ExcelForum.com/

  #4  
Old June 15th, 2004, 12:52 AM
bg18461
external usenet poster
 
Posts: n/a
Default 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  
Old June 15th, 2004, 02:10 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default 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  
Old June 15th, 2004, 08:23 PM
bg18461
external usenet poster
 
Posts: n/a
Default Hiding Checkbox from "Forms" Toolbar

any hints on my above question...


---
Message posted from http://www.ExcelForum.com/

  #7  
Old June 16th, 2004, 12:05 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.