Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2007

Tip: Looking for answers? Try searching our database.

about check boxe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pmss - 20 Dec 2007 11:24 GMT
i am doing some calculations using Macros. I have problem with check boxes. I
want to link with some cells so that i can put my input parameters there for
futher calculation. when i checked the box, link cells must appear and
viceversa.
Thanks
Joel - 20 Dec 2007 11:36 GMT
Check boxes have a property Linked cell where the links cell will havvew a
value True or False.  You can set the lijnked cell either through the
worksheet or VBA.

To set the link cell on the worksheet you need to get into design mode and
change the check box property.

1) view Menu - tool Bars - Control Tool box
2) On toolbar press triangle (Design Mode)
3) Press Property on tool bar (next to triangle).
4) Press Check box.  On properrty window set LinkCell to a cell like A1.
5) Exit Design mode by pressing triangle again.  Now when you check and
uncheck the check box the linked cell will automatically change.

> i am doing some calculations using Macros. I have problem with check boxes. I
> want to link with some cells so that i can put my input parameters there for
> futher calculation. when i checked the box, link cells must appear and
> viceversa.
> Thanks
pmss - 20 Dec 2007 12:12 GMT
Thanks
Actually i need to have some cells appear when i checked the box so that i
can put my values in the appeared cell.

> i am doing some calculations using Macros. I have problem with check boxes. I
> want to link with some cells so that i can put my input parameters there for
> futher calculation. when i checked the box, link cells must appear and
> viceversa.
> Thanks
Joel - 20 Dec 2007 12:16 GMT
If you go into design mode and double click the check box it will create a
click macro.  Put macro code into the click code to make the cells appear or
disappear.

> Thanks
> Actually i need to have some cells appear when i checked the box so that i
[quoted text clipped - 5 lines]
> > viceversa.
> > Thanks
pmss - 20 Dec 2007 12:31 GMT
Can you please write me a micro code that will help me to do so. I am not
expert on using macros.

> If you go into design mode and double click the check box it will create a
> click macro.  Put macro code into the click code to make the cells appear or
[quoted text clipped - 9 lines]
> > > viceversa.
> > > Thanks
Joel - 20 Dec 2007 12:39 GMT
Private Sub CheckBox1_Click()

If CheckBox1.Value = True Then
  Columns("D").Hidden = True
Else
  Columns("D").Hidden = False

End If

End Sub

> Can you please write me a micro code that will help me to do so. I am not
> expert on using macros.
[quoted text clipped - 12 lines]
> > > > viceversa.
> > > > Thanks
pmss - 20 Dec 2007 13:00 GMT
thanks

> Private Sub CheckBox1_Click()
>
[quoted text clipped - 23 lines]
> > > > > viceversa.
> > > > > Thanks
Rick Rothstein (MVP - VB) - 24 Dec 2007 21:07 GMT
Your Click event code can be shortened to this...

Private Sub CheckBox1_Click()
   Columns("D").Hidden = CheckBox1.Value
End Sub

Rick

> Private Sub CheckBox1_Click()
>
[quoted text clipped - 29 lines]
>> > > > viceversa.
>> > > > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.