#7447
Yutaka Emura
Keymaster

kenny wrote:
Hi all
I have written a macro that pulls certain text out of the active document and writes it to a new document.
No problem with that.
I am now attempting to set the configuration of the new document to be the same as the original [active] document.
The following code does not error, but it does not produce the desired result either. Do I need to activate it somehow?

cfg = docOriginal.Config.Name
docOutput.Config.Load(cfg);

thanks.


s = docOriginal.ConfigName;
docOutput.ConfigName = s;

This should work.