PC Review


Reply
Thread Tools Rate Thread

Checkbox to open another worksheet

 
 
=?Utf-8?B?U0xLb2Vsa2Vy?=
Guest
Posts: n/a
 
      21st Aug 2007
I have a checklist in excel. For each question the person filling it out must
choose Yes No or NA (all checkboxes created from Control Toolbox). For all NA
answers the person must give a reason on sheet 3 that I renamed NA
Clarification. Is there a way to make it so that when someone checks the box
for NA it automatically goes to the NA Clarification sheet (sheet 3)? I don't
know if there is a hyperlink or formula I can put in for that? Please help.
Thanks in advance.
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      21st Aug 2007
Usually you use option buttons for mutually exclusive choices like you have.
Anyway, you need to attach a macro to your option button/check box. Double
click it in Design Mode (settable in the Control Toolbox toolbar) and paste
code into the sheet module similar to this:

Private Sub OptionButton1_Click()
Worksheets("Sheet3").Activate
End Sub


--
Jim
"SLKoelker" <(E-Mail Removed)> wrote in message
newsFD8D4F8-E671-41A1-A8CB-(E-Mail Removed)...
|I have a checklist in excel. For each question the person filling it out
must
| choose Yes No or NA (all checkboxes created from Control Toolbox). For all
NA
| answers the person must give a reason on sheet 3 that I renamed NA
| Clarification. Is there a way to make it so that when someone checks the
box
| for NA it automatically goes to the NA Clarification sheet (sheet 3)? I
don't
| know if there is a hyperlink or formula I can put in for that? Please
help.
| Thanks in advance.


 
Reply With Quote
 
=?Utf-8?B?U0xLb2Vsa2Vy?=
Guest
Posts: n/a
 
      21st Aug 2007
THANKS!!! it worked great.

Just one more thing, is there a way to uncheck all the checkboxes at once
instead of individually? Please help. Thanks.

"Jim Rech" wrote:

> Usually you use option buttons for mutually exclusive choices like you have.
> Anyway, you need to attach a macro to your option button/check box. Double
> click it in Design Mode (settable in the Control Toolbox toolbar) and paste
> code into the sheet module similar to this:
>
> Private Sub OptionButton1_Click()
> Worksheets("Sheet3").Activate
> End Sub
>
>
> --
> Jim
> "SLKoelker" <(E-Mail Removed)> wrote in message
> newsFD8D4F8-E671-41A1-A8CB-(E-Mail Removed)...
> |I have a checklist in excel. For each question the person filling it out
> must
> | choose Yes No or NA (all checkboxes created from Control Toolbox). For all
> NA
> | answers the person must give a reason on sheet 3 that I renamed NA
> | Clarification. Is there a way to make it so that when someone checks the
> box
> | for NA it automatically goes to the NA Clarification sheet (sheet 3)? I
> don't
> | know if there is a hyperlink or formula I can put in for that? Please
> help.
> | Thanks in advance.
>
>
>

 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      21st Aug 2007
Again, you need a macro:

Sub UnCheck()
Dim Obj As OLEObject
For Each Obj In ActiveSheet.OLEObjects
If Obj.progID = "Forms.CheckBox.1" Then
Obj.Object.Value = False
End If
Next
End Sub



--
Jim
"SLKoelker" <(E-Mail Removed)> wrote in message
news:0E7DADAF-50E4-418D-A344-(E-Mail Removed)...
| THANKS!!! it worked great.
|
| Just one more thing, is there a way to uncheck all the checkboxes at once
| instead of individually? Please help. Thanks.
|
| "Jim Rech" wrote:
|
| > Usually you use option buttons for mutually exclusive choices like you
have.
| > Anyway, you need to attach a macro to your option button/check box.
Double
| > click it in Design Mode (settable in the Control Toolbox toolbar) and
paste
| > code into the sheet module similar to this:
| >
| > Private Sub OptionButton1_Click()
| > Worksheets("Sheet3").Activate
| > End Sub
| >
| >
| > --
| > Jim
| > "SLKoelker" <(E-Mail Removed)> wrote in message
| > newsFD8D4F8-E671-41A1-A8CB-(E-Mail Removed)...
| > |I have a checklist in excel. For each question the person filling it
out
| > must
| > | choose Yes No or NA (all checkboxes created from Control Toolbox). For
all
| > NA
| > | answers the person must give a reason on sheet 3 that I renamed NA
| > | Clarification. Is there a way to make it so that when someone checks
the
| > box
| > | for NA it automatically goes to the NA Clarification sheet (sheet 3)?
I
| > don't
| > | know if there is a hyperlink or formula I can put in for that? Please
| > help.
| > | Thanks in advance.
| >
| >
| >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Checkbox to Worksheet nlb1 Microsoft Excel Programming 1 21st Jul 2008 08:39 PM
checkbox in a protected worksheet Eric Wixom Microsoft Excel Worksheet Functions 2 11th Jan 2008 04:15 PM
checkbox and worksheet =?Utf-8?B?SmVubg==?= Microsoft Excel Misc 2 26th Jun 2006 04:38 PM
CheckBox value to worksheet Patrick Simonds Microsoft Excel Programming 2 14th Jun 2004 05:54 PM
Loop through checkBox on worksheet bman Microsoft Excel Programming 3 26th Nov 2003 03:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:09 PM.