ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Checkbox to open another worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/155134-checkbox-open-another-worksheet.html)

SLKoelker

Checkbox to open another worksheet
 
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.

Jim Rech

Checkbox to open another worksheet
 
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" wrote in message
...
|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.



SLKoelker

Checkbox to open another worksheet
 
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" wrote in message
...
|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.




Jim Rech

Checkbox to open another worksheet
 
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" wrote in message
...
| 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" wrote in message
| ...
| |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.
|
|
|




All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com