Hi all
I have created a new ribbon using the Custom UI Editor. Part of the xml is shown below. I want to change it by VBA so that if a boolean variable in my project is True then the 'enable property' (last line below) changes from 'false' to 'true'. Any ideas?
<tabs>
<tab id="MyCustomTab" label="MyTab" >
<group id="customGroup1" label="MyGroup">
<button id="customButton1" label="Caption 1" size="normal" onAction="MyMacro" imageMso="DirectRepliesTo" enabled="false" />
</group>
</tab>
</tabs>
I have created a new ribbon using the Custom UI Editor. Part of the xml is shown below. I want to change it by VBA so that if a boolean variable in my project is True then the 'enable property' (last line below) changes from 'false' to 'true'. Any ideas?
<tabs>
<tab id="MyCustomTab" label="MyTab" >
<group id="customGroup1" label="MyGroup">
<button id="customButton1" label="Caption 1" size="normal" onAction="MyMacro" imageMso="DirectRepliesTo" enabled="false" />
</group>
</tab>
</tabs>