User Guide > Managing Macro Sets and Macros > Macros > Importing Macros using Preferences Dialog
Was this helpful?
Importing Macros using Preferences Dialog
You can import macros from other macro definition files using the Import Macros button on the Manage Macros preferences dialog.
To import macros:
1. Do any of the following:
Go to Options > Manage Macros.
Go to Options > Preferences. Expand DataConnect and click Macros.
The Preferences dialog is displayed.
2. Click Import Macros and select a non-workspace macro definition file to import macros from. For more information about macro definition file, see Macro Definition Files.
The Macro Import Wizard is displayed.
Note:  You are allowed to select an old v9 macro definition XML file for importing macros.
3. Click Next.
The macro selection dialog is displayed. This dialog lists all macrosets and macros from the selected macro definition file.
4. Select the macrosets and the macros you wish to import and then click Next.
The Select macro conflict dialog is displayed.
Tip...  Click Select All to select all available macrosets and macros.
Note:  When you specify a Macro filter text, and select macros to import from the filtered list, any old selection is not retained. What you get is only the current selection from the filtered list. Changing the Macro filter text resets the selection list if you select filtered macros. If you do not select filtered macros and you set the filter back to empty string, the old selections will reappear.
5. Choose what to do when a macroset name or macro name conflict occurs. You can choose from the following options:
Macroset already exists options:
Merge macros into existing macroset - If the macroset that you are importing already exists, then choosing this option will copy the macros into the existing macroset.
Create new macroset (ignored for Global macroset) - If the macroset that you are importing already exists, then choosing this option will create a new macroset for all macrosets except GLOBAL and copy the macros into this macroset. The new macroset will take the name macrosetName_1.
Note:  This option remains disabled if you select an old v9 macro definition XML file, since v9 follows only Global macroset format.
Macro already exist within macroset options:
If you have selected Merge macros into existing macroset and there are conflicting macro names then you have the following three choices.
Leave existing macro and value as-is - Selecting this option will leave the existing macro as it is, with the same name and value as it already exists in the workspace.
Note:  This option remains disabled when Create new macroset (ignored for Global macroset) option is selected under Macroset already exists options.
Overwrite with imported macro value - Select this option to override the macro value from the imported file into the value that already exists in the workspace.
Note:  This option remains disabled when Create new macroset (ignored for Global macroset) option is selected under Macroset already exists options.
Create new macro - Selecting this option will create a new macro and leave the existing macro as it is in the workspace. The new macro will take the name macroName_1.
6. Click Finish and then click Apply and Close.
Last modified date: 08/04/2024