Repost: (workaround no good) Change the state of a toggle button without running the click event 
Author Message
 Repost: (workaround no good) Change the state of a toggle button without running the click event

When I click a button I want another button (a toggle) to change from
deppressed to undepressed. so I just say: ToggleButton.Value = False

Trouble is when it runds it goes to the click event for that button which I
don't want to run, I just want to change it's state. Anyone know a
workaround or how to access the state property of the button alone?

Thanks for your help, kind rgds, Mark

Sorry for the repost but the workaround I devised had a fatal flaw, the code
in the oither two buttons never worked!!! Dohhh



Tue, 17 Aug 2004 21:09:58 GMT  
 Repost: (workaround no good) Change the state of a toggle button without running the click event
See answer to your original post.

Regards,
Tom Ogilvy


Quote:
> When I click a button I want another button (a toggle) to change from
> deppressed to undepressed. so I just say: ToggleButton.Value = False

> Trouble is when it runds it goes to the click event for that button which
I
> don't want to run, I just want to change it's state. Anyone know a
> workaround or how to access the state property of the button alone?

> Thanks for your help, kind rgds, Mark

> Sorry for the repost but the workaround I devised had a fatal flaw, the
code
> in the oither two buttons never worked!!! Dohhh



Tue, 17 Aug 2004 21:38:47 GMT  
 Repost: (workaround no good) Change the state of a toggle button without running the click event
Mark,

all ive done here is a small macro that changes the linkedcell (this can be
a hidden cell) the toggle button is assigned to, it could be built into your
code.

Regards
Pete

Sub resettoggle()

    Range("N1").Select
    ActiveCell.FormulaR1C1 = "false"

End Sub


Quote:
> When I click a button I want another button (a toggle) to change from
> deppressed to undepressed. so I just say: ToggleButton.Value = False

> Trouble is when it runds it goes to the click event for that button which
I
> don't want to run, I just want to change it's state. Anyone know a
> workaround or how to access the state property of the button alone?

> Thanks for your help, kind rgds, Mark

> Sorry for the repost but the workaround I devised had a fatal flaw, the
code
> in the oither two buttons never worked!!! Dohhh



Wed, 18 Aug 2004 02:28:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Change the state of a toggle button without running the click event

2. Using a button to toggle between states

3. Toggle Button State

4. How to toggle between button states on click?

5. state of a toggle button

6. How to specify the state of a toggle button

7. Emulating state toggle buttons (Word 2000)

8. Changing button state w/o changing in template

9. changing toggle button caption

10. change which toggle button appears pressed from results in a table


 
Powered by phpBB® Forum Software © phpBB Group