Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does anyone know how to use code or some other method to set the active state
of a button once you click it? What I would like to happen is for Button1 to be able to be clicked once, and then turn inactive (gray) until Button2 is clicked. Any help would be appreciated. Thanks in advance, Robb |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Robb,
You've pretty much got it, in words, so in code: Private Sub CommandButton1_Click() CommandButton1.Enabled = False End Sub Private Sub CommandButton2_Click() CommandButton1.Enabled = True End Sub NickHK "Robb Quirk" wrote in message ... Does anyone know how to use code or some other method to set the active state of a button once you click it? What I would like to happen is for Button1 to be able to be clicked once, and then turn inactive (gray) until Button2 is clicked. Any help would be appreciated. Thanks in advance, Robb |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you very much - that worked like a charm. I knew there was a simple
solution. :) Robb "NickHK" wrote: Robb, You've pretty much got it, in words, so in code: Private Sub CommandButton1_Click() CommandButton1.Enabled = False End Sub Private Sub CommandButton2_Click() CommandButton1.Enabled = True End Sub NickHK "Robb Quirk" wrote in message ... Does anyone know how to use code or some other method to set the active state of a button once you click it? What I would like to happen is for Button1 to be able to be clicked once, and then turn inactive (gray) until Button2 is clicked. Any help would be appreciated. Thanks in advance, Robb |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create floating button based on button click in menu | Excel Programming | |||
On Button Click(Help!) | Excel Programming | |||
How to add a command button and on-click within vba | Excel Programming | |||
VBA button click need help. Need LEN help. | Excel Programming | |||
VBA button click need help. Need LEN help. | Excel Programming |