Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
lock button after click
Hi Guys Dolls
I have a worksheet which is used for master data input - there is a Button which when clicked generates a "Form" number via a Macro assigned to the button. After generating the number I want to lock the button. I cannot use Sheet Protect as I use it at the end of the worksheet when the last user completes their input the Sheet protection is called via a Macro assigned to a different button. the button is in Cell I5. please could you assit with VBA code which would lock the Button after number generation but leave the rest of the sheet unprotected for data entry. Many thanks Carl |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
lock button after click
Use the Enabled property...as below after the macro is called
Private Sub CommandButton1_Click() Run "Macro" CommandButton1.Enabled = False End Sub If this post helps click Yes --------------- Jacob Skaria "Carl" wrote: Hi Guys Dolls I have a worksheet which is used for master data input - there is a Button which when clicked generates a "Form" number via a Macro assigned to the button. After generating the number I want to lock the button. I cannot use Sheet Protect as I use it at the end of the worksheet when the last user completes their input the Sheet protection is called via a Macro assigned to a different button. the button is in Cell I5. please could you assit with VBA code which would lock the Button after number generation but leave the rest of the sheet unprotected for data entry. Many thanks Carl |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I undo the scroll lock, thscroll lock button does not work | Excel Discussion (Misc queries) | |||
lock command button | Excel Worksheet Functions | |||
Lock cell reference in formula, even when moved with click & drag | Excel Worksheet Functions | |||
How to lock worksheet and still able to click on grouped rows | Excel Worksheet Functions | |||
How do I lock a radio button group if a N/A button is selected | Excel Discussion (Misc queries) |