Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Suppressing AutoClose Macro when Creating TOC Spanning Multiple Do
I have created a TOC from multiple documents using the RD field code as
described in the following: "Creating a Table of Contents Spanning Multiple Documents" http://pubs.logicalexpressions.com/P...cle.asp?ID=148 I am contemplating adding an AutoClose macro to the documents referenced by the RD field code. Is there a way to suppress the running of the AutoClose macro when I access the documents using the method described above? Thanks in advance, Barb Reinhardt |
#2
|
|||
|
|||
On Tue, 29 Mar 2005 11:05:10 -0800, "Barb R."
wrote: I have created a TOC from multiple documents using the RD field code as described in the following: "Creating a Table of Contents Spanning Multiple Documents" http://pubs.logicalexpressions.com/P...cle.asp?ID=148 I am contemplating adding an AutoClose macro to the documents referenced by the RD field code. Is there a way to suppress the running of the AutoClose macro when I access the documents using the method described above? Thanks in advance, Barb Reinhardt I'm not 100% sure this will work, but try putting the line WordBasic.DisableAutoMacros 1 just before the line Set oDoc = Documents.Open(FileName:=strCode) I know it will suppress AutoOpen and AutoExec, just not sure about AutoClose. You ought to be aware of http://www.word.mvps.org/FAQs/Macros...icCommands.htm -- it's very helpful sometimes. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
#3
|
|||
|
|||
That appears to work, THANKS! I'll look at the link you supplied. I'm sure
that will help me. Barb Reinhardt "Jay Freedman" wrote: On Tue, 29 Mar 2005 11:05:10 -0800, "Barb R." wrote: I have created a TOC from multiple documents using the RD field code as described in the following: "Creating a Table of Contents Spanning Multiple Documents" http://pubs.logicalexpressions.com/P...cle.asp?ID=148 I am contemplating adding an AutoClose macro to the documents referenced by the RD field code. Is there a way to suppress the running of the AutoClose macro when I access the documents using the method described above? Thanks in advance, Barb Reinhardt I'm not 100% sure this will work, but try putting the line WordBasic.DisableAutoMacros 1 just before the line Set oDoc = Documents.Open(FileName:=strCode) I know it will suppress AutoOpen and AutoExec, just not sure about AutoClose. You ought to be aware of http://www.word.mvps.org/FAQs/Macros...icCommands.htm -- it's very helpful sometimes. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Table in a Form | Tables | |||
need help creating macro to auto print | Microsoft Word Help | |||
I need help creating a macro to use for a big network. | Microsoft Word Help | |||
Save As is not working due to macro security settings | Microsoft Word Help | |||
2000 to 2002 macro and "Could not open macro storage" | Mailmerge |