Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7446
    kenny
    Participant

    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.

    #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.

    #7448
    kenny
    Participant

    Works beautifully.

    thanks again for prompt and accurate replies.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.