Replace specific variables in all files in a book

You can use the BookVars file to replace variables. The ReplaceVarChar parameter defines the character that tells the Import Variables command to replace or overwrite the variable rather than change its definition. Set the ReplaceVarChar parameter to a value (a single character), then use that value as the first character of the "definition." The next time you run the Import Variables command, those variables will be replaced. You use this feature to rename a variable to a name that already exists (if you just want to rename an variable to a new name, see Rename specific variables in all files in a book).

For example, the following sample file will replace the PRODNAME and PRODCODE variable definitions with the PRODUCT definition. The ReplaceVarChar parameter is set to "@" and that character is used as the first character in the "definition." This will only work if the PRODUCT variable format already exists, if it does not exist, you would use the "rename" feature for the first variable and the "replace" for the second.

[General] 
AltBookVarsFile= 
DeleteVarCode= 
RenameVarChar= 
ReplaceVarChar=@ 
UpdateMarkerVars=0 
EditorType=0 
 
[Groups] 
Count=1 
1=MainGroup 
 
[MainGroup] 
;VARIABLE=DEFINITION 
PRODNAME=@PRODUCT 
PRODCODE=@PRODUCT
Warning: Be careful to use a value for the ReplaceVarChar parameter that is not used as the first character in your variable names.