Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to disable a button when clicked and enable it when another button is clicked.
I am using the ffg code in my macro.
set buttonOn = ActiveDocument.GetSheetObject("BU04")
set b1 = buttonOn.GetProperties
set buttonOff = ActiveDocument.GetSheetObject("BU05")
set b2 = buttonOff.GetProperties
b2.Enable = 1
b1.Enable = 0
buttonOn.SetProperties b1
buttonOff.SetProperties b2
This does not work.
Kind Regards
Razak
Hi,
You don't need a macro. Just actions and enable condition.
Use actions to set a variable. ( Actions - External Action -> Set Variable)
Then, use this variable in the enable condition of the button (button properties -> general tab)
I used this in the attachment.
Regards,
Erich
Hi,
Instead of do a trick like have two buttons in same place.
1. with actions(enabled state)
2.without actions(disabled state)
On clicking the button enable/Disable show and hide the buttons.
Celambarasan
Hi,
You don't need a macro. Just actions and enable condition.
Use actions to set a variable. ( Actions - External Action -> Set Variable)
Then, use this variable in the enable condition of the button (button properties -> general tab)
I used this in the attachment.
Regards,
Erich
Thanks It Works!!!
Hi,
I think you can do that without using a macro. In the trigger of the Button you can set a variable.
1. Create a Variable with the value 0
2. Then in your button create the trigger wich will set this variable to 1
3. And in the tab "layout" you set a condition to enable the button when the variable = 0.
4. In your second button create another trigger wich will set the variable to 0
5. And in the tab layout set a condition to enable the button when the variable = 1
Regards,
Pauline