ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Uncheck a box (https://www.excelbanter.com/excel-discussion-misc-queries/156220-uncheck-box.html)

Pietro

Uncheck a box
 
Hi,

I want to uncheck the check box that exists a tab called "Quiz" once i
open the excel sheet,is it possible?

Bob Phillips

Uncheck a box
 
Private Sub Workbook_Open()
Worksheets("Quiz").CheckBoxes("Check Box 1").Value = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pietro" wrote in message
...
Hi,

I want to uncheck the check box that exists a tab called "Quiz" once i
open the excel sheet,is it possible?




Pietro

Uncheck a box
 
Thank you,
I tried the code but it gave me an error (RunTime error:1004 Unable to get
the Checkboxes property of the Woeksheet class)

"Bob Phillips" wrote:

Private Sub Workbook_Open()
Worksheets("Quiz").CheckBoxes("Check Box 1").Value = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pietro" wrote in message
...
Hi,

I want to uncheck the check box that exists a tab called "Quiz" once i
open the excel sheet,is it possible?





Bob Phillips

Uncheck a box
 
Must be an Activex checkbox then, so try

Private Sub Workbook_Open()
Worksheets("Quiz").OLEObjects("CheckBox1").Object. Value = False
End Sub


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pietro" wrote in message
...
Thank you,
I tried the code but it gave me an error (RunTime error:1004 Unable to get
the Checkboxes property of the Woeksheet class)

"Bob Phillips" wrote:

Private Sub Workbook_Open()
Worksheets("Quiz").CheckBoxes("Check Box 1").Value = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Pietro" wrote in message
...
Hi,

I want to uncheck the check box that exists a tab called "Quiz" once i
open the excel sheet,is it possible?







Pietro

Uncheck a box
 
Thanx alot,it works now

"Bob Phillips" wrote:

Must be an Activex checkbox then, so try

Private Sub Workbook_Open()
Worksheets("Quiz").OLEObjects("CheckBox1").Object. Value = False
End Sub


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pietro" wrote in message
...
Thank you,
I tried the code but it gave me an error (RunTime error:1004 Unable to get
the Checkboxes property of the Woeksheet class)

"Bob Phillips" wrote:

Private Sub Workbook_Open()
Worksheets("Quiz").CheckBoxes("Check Box 1").Value = False
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Pietro" wrote in message
...
Hi,

I want to uncheck the check box that exists a tab called "Quiz" once i
open the excel sheet,is it possible?








All times are GMT +1. The time now is 05:30 PM.

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