Toggle Button
If it is a toolbar button, you can set and check its State property.
If it is a commandbutton, then you could use a global variable and set
/unset that,
Dim fStatus As Boolean
Private Sub CommandButton1_Click()
If fStatus Then
'do one thing
Else
'do an other
End If
fStatus = Not fStatus
End Sub
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"Keri" wrote in message
...
I have a toggle button that when clicked ON I want to run
one code and when clicked OFF I want to run a different
code. Is this possible?? Please help me out.
--Keri
|