- AuthorPosts
- July 3, 2009 at 4:14 am #7446kennyParticipant
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.
July 3, 2009 at 5:39 am #7447Yutaka EmuraKeymasterkenny 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.
July 3, 2009 at 5:42 am #7448kennyParticipantWorks beautifully.
thanks again for prompt and accurate replies.
- AuthorPosts
- You must be logged in to reply to this topic.