Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how do use write code so that a checkbox is selected when the program begins?
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming that it is a Forms checkbox
Private Sub Workbook_Open() Worksheets("Sheet1").CheckBoxes("Check Box 2").Value = 1 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 Phillips (replace somewhere in email address with gmail if mailing direct) "april27" wrote in message ... how do use write code so that a checkbox is selected when the program begins? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Apil27,
Assuming that the checkbox is on a userform, as might be implied by some of your earlier posts, try: '============= Private Sub UserForm_Initialize() Me.CheckBox1.SetFocus End Sub '<<============= --- Regards, Norman "april27" wrote in message ... how do use write code so that a checkbox is selected when the program begins? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
How do I link one checkbox to update another checkbox? | Excel Programming | |||
checkbox on form reset from checkbox on sheet | Excel Programming | |||
Checkbox!! | Excel Discussion (Misc queries) | |||
checkbox | Excel Programming |