Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default about check boxe

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default about check boxe

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.

"pmss" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default about check boxes

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.

"pmss" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default about check boxes

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.

"pmss" wrote:

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.

"pmss" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default about check boxes

Can you please write me a micro code that will help me to do so. I am not
expert on using macros.

"Joel" wrote:

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.

"pmss" wrote:

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.

"pmss" wrote:

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default about check boxes

Private Sub CheckBox1_Click()

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

End If

End Sub


"pmss" wrote:

Can you please write me a micro code that will help me to do so. I am not
expert on using macros.

"Joel" wrote:

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.

"pmss" wrote:

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.

"pmss" wrote:

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

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default about check boxes

thanks


"Joel" wrote:

Private Sub CheckBox1_Click()

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

End If

End Sub


"pmss" wrote:

Can you please write me a micro code that will help me to do so. I am not
expert on using macros.

"Joel" wrote:

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.

"pmss" wrote:

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.

"pmss" wrote:

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

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default about check boxes

Your Click event code can be shortened to this...

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

Rick


"Joel" wrote in message
...
Private Sub CheckBox1_Click()

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

End If

End Sub


"pmss" wrote:

Can you please write me a micro code that will help me to do so. I am not
expert on using macros.

"Joel" wrote:

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.

"pmss" wrote:

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.

"pmss" wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a validation that makes one box equalsum of other boxe Holly Excel Discussion (Misc queries) 1 June 25th 08 12:03 PM
Loop through column(s) to check values, perform action based on check ward376 Excel Programming 4 November 6th 07 03:21 PM
Check boxe size Melissa Excel Discussion (Misc queries) 1 October 3rd 07 04:38 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Dialogue Boxe Linou Excel Programming 1 October 24th 03 08:31 PM


All times are GMT +1. The time now is 03:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"