Reply
 
Thread Tools Display Modes
  #1   Report Post  
Barb R.
 
Posts: n/a
Default 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   Report Post  
Jay Freedman
 
Posts: n/a
Default

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   Report Post  
Barb R.
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
need help creating macro to auto print Vaughn Microsoft Word Help 1 February 17th 05 06:28 PM
I need help creating a macro to use for a big network. Stacy Microsoft Word Help 2 December 30th 04 04:01 PM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 02:42 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"