Turn backup on/off (W/E)

Modified on Mon, 5 Oct at 1:53 PM

This feature is a toggle button to turn the backup feature on or off in both Word and Excel. In Word, the command goes to Options and checks the "Always create backup copy":

2019-06-28_15-13-50.png

In Excel, it goes to Browse and then General options in Tools:

2019-06-28_15-16-24.png

In here, the command checks the "Always create backup".

2019-06-28_15-21-34.png

CMD

Since this feature is intended to work as a toggle button, follow the setup for toggle buttons as in this article. This is the command to toggle the backup:

<Cmd case="BaseExtensions:backup" alwaysBackup="X"/>

Parameter

alwaysBackup

Define whether the command should backup using true or false.

Example of module

The code below can be copy pasted into your module.

XML
<ToggleButton label="Backup on/off" pressed="BaseExtensions:any" pressed-1-type="backup">
  <True>
    <Cmd case="BaseExtensions:backup" alwaysBackup="true"/>
  </True>
  <False>
    <Cmd case="BaseExtensions:backup" alwaysBackup="false"/>
  </False>
</ToggleButton>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article