Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional visibility of check box

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default conditional visibility of check box

As opposed to conditional visibility I prefer to use conditional enabling.
The box is there but can not be used until the cell is filled in. I get too
many calls from people saying it is broken because the check box was not
there... Tyr this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("A1"), Target) Is Nothing Then
If Target.Value < "" Then
CheckBox1.Enabled = True
Else
CheckBox1.Enabled = False
End If
End If
End Sub

Paste this code into the sheet where the checkbox is.
--
HTH...

Jim Thomlinson


"Erol" wrote:

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional visibility of check box

That was awesome, thank you Jim.

I would appreciate if you can also show me how to make it visible and
invisible under a cell's condition.

Thank you

"Jim Thomlinson" wrote:

As opposed to conditional visibility I prefer to use conditional enabling.
The box is there but can not be used until the cell is filled in. I get too
many calls from people saying it is broken because the check box was not
there... Tyr this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("A1"), Target) Is Nothing Then
If Target.Value < "" Then
CheckBox1.Enabled = True
Else
CheckBox1.Enabled = False
End If
End If
End Sub

Paste this code into the sheet where the checkbox is.
--
HTH...

Jim Thomlinson


"Erol" wrote:

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default conditional visibility of check box

Replace Enable with Visible in the code that was posted...

CheckBox1.Visible= True or False...
--
HTH...

Jim Thomlinson


"Erol" wrote:

That was awesome, thank you Jim.

I would appreciate if you can also show me how to make it visible and
invisible under a cell's condition.

Thank you

"Jim Thomlinson" wrote:

As opposed to conditional visibility I prefer to use conditional enabling.
The box is there but can not be used until the cell is filled in. I get too
many calls from people saying it is broken because the check box was not
there... Tyr this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("A1"), Target) Is Nothing Then
If Target.Value < "" Then
CheckBox1.Enabled = True
Else
CheckBox1.Enabled = False
End If
End If
End Sub

Paste this code into the sheet where the checkbox is.
--
HTH...

Jim Thomlinson


"Erol" wrote:

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional visibility of check box

This is magic.... thank you Jim

"Erol" wrote:

That was awesome, thank you Jim.

I would appreciate if you can also show me how to make it visible and
invisible under a cell's condition.

Thank you

"Jim Thomlinson" wrote:

As opposed to conditional visibility I prefer to use conditional enabling.
The box is there but can not be used until the cell is filled in. I get too
many calls from people saying it is broken because the check box was not
there... Tyr this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("A1"), Target) Is Nothing Then
If Target.Value < "" Then
CheckBox1.Enabled = True
Else
CheckBox1.Enabled = False
End If
End If
End Sub

Paste this code into the sheet where the checkbox is.
--
HTH...

Jim Thomlinson


"Erol" wrote:

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional visibility of check box

Hi Jim... your previous replies helped greatly.... but I was trying the check
box clickable when A1 cell has the exact value of "2". Is this possible....

I substituted (< "") with ( = 2) or even with ( = "2") but it
didn't work. The value 2 is an output of an option button.

I would appreciate the help.

"Jim Thomlinson" wrote:

Replace Enable with Visible in the code that was posted...

CheckBox1.Visible= True or False...
--
HTH...

Jim Thomlinson


"Erol" wrote:

That was awesome, thank you Jim.

I would appreciate if you can also show me how to make it visible and
invisible under a cell's condition.

Thank you

"Jim Thomlinson" wrote:

As opposed to conditional visibility I prefer to use conditional enabling.
The box is there but can not be used until the cell is filled in. I get too
many calls from people saying it is broken because the check box was not
there... Tyr this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("A1"), Target) Is Nothing Then
If Target.Value < "" Then
CheckBox1.Enabled = True
Else
CheckBox1.Enabled = False
End If
End If
End Sub

Paste this code into the sheet where the checkbox is.
--
HTH...

Jim Thomlinson


"Erol" wrote:

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,

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
Add-In Visibility Trent Argante Excel Discussion (Misc queries) 5 February 13th 08 08:01 PM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Textbox text visibility bcelestia Excel Discussion (Misc queries) 2 January 11th 07 08:47 AM
Custom Toolbar Visibility RCW Excel Discussion (Misc queries) 2 October 26th 06 05:39 PM
Visibility of active cell. gjanssenmn Excel Discussion (Misc queries) 1 October 4th 05 06:24 PM


All times are GMT +1. The time now is 01:10 PM.

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

About Us

"It's about Microsoft Excel"