#1   Report Post  
Posted to microsoft.public.word.docmanagement
confused confused is offline
external usenet poster
 
Posts: 12
Default Help with Templates

I had a post that before "Help with Macros and Templates Options",
got past the problemof inserting one template into another without
messing with the different headers and footer; I now have a problem
with creating one right after another. When I run an application that
calls Microsoft Word to insert one template into another everything
runs great; finishes without a problem. I close Microsoft Word down
and with that application still open I want to try and do the same
process again, calling Microsoft Word, etc..., the second time around
does not work, it fails on this piece of code:
With ActiveDocuments.Bookmarks
.Add "NewPage", Selection.Range
.DefaultSorting = wdSortByName
.ShowHidden = True
End With

Anyone got any ideas as to why that part of code fails the second time
around?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Help with Templates

For more knowledgeable help, try posting in a programming newsgroup such as
microsoft.public.word.vba.general. I suspect that you must include more code
to show what the macro does before and after the commands that fail.

--
Stefan Blom
Microsoft Word MVP


"confused" wrote:

I had a post that before "Help with Macros and Templates Options",
got past the problemof inserting one template into another without
messing with the different headers and footer; I now have a problem
with creating one right after another. When I run an application that
calls Microsoft Word to insert one template into another everything
runs great; finishes without a problem. I close Microsoft Word down
and with that application still open I want to try and do the same
process again, calling Microsoft Word, etc..., the second time around
does not work, it fails on this piece of code:
With ActiveDocuments.Bookmarks
.Add "NewPage", Selection.Range
.DefaultSorting = wdSortByName
.ShowHidden = True
End With

Anyone got any ideas as to why that part of code fails the second time
around?

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
Organize templates - delete Word default templates DianeVan New Users 2 May 14th 08 06:04 AM
SpellCheck fails on a templates from Microsoft Online Templates LOGIKonline Microsoft Word Help 3 April 25th 08 02:30 PM
Flash 8 Templates... Looking for better designs? Ready-Made Templates. sherman Microsoft Word Help 0 January 11th 07 11:10 PM
Templates not opening as templates as word documents Alpha Man Microsoft Word Help 2 September 26th 06 05:36 PM
Mail Merge Templates from Multiple Templates Programmatically BP Mailmerge 1 April 7th 06 02:50 PM


All times are GMT +1. The time now is 12:53 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"