Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I have a spreadsheet with a macro assigned to a button, with a checkbox (from the control toolbar) next to this button for the user to manually tick when they have run the macro. Is there a way for the checkbox to be ticked automatically when the button is clicked? Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Just add code in the macro assigned to the button
Activesheet.CheckBox1.Value = true -- Regards, Tom Ogilvy "PaulJ" wrote in message ... Hi, I have a spreadsheet with a macro assigned to a button, with a checkbox (from the control toolbar) next to this button for the user to manually tick when they have run the macro. Is there a way for the checkbox to be ticked automatically when the button is clicked? Thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Tom, I've adapted this slightly as my checkboxes aren't necessarily
CheckBox1. I've inserted the following code into my macro and it works nicely: With ActiveSheet .Checkboxes.Value = True End With I wondered if anyone knows whether checkboxes can be protected? Ideally I would like my macro to determine whether the checkbox is ticked or not. Regards, Paul "Tom Ogilvy" wrote: Just add code in the macro assigned to the button Activesheet.CheckBox1.Value = true -- Regards, Tom Ogilvy "PaulJ" wrote in message ... Hi, I have a spreadsheet with a macro assigned to a button, with a checkbox (from the control toolbar) next to this button for the user to manually tick when they have run the macro. Is there a way for the checkbox to be ticked automatically when the button is clicked? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox to be marked with a cross rather than a tick | New Users to Excel | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Macro for checkbox (2) | Excel Discussion (Misc queries) | |||
tick a reference automatically | Excel Discussion (Misc queries) | |||
Automatically launch a macro when a fil is opened | Excel Discussion (Misc queries) |