Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Organize templates - delete Word default templates | New Users | |||
SpellCheck fails on a templates from Microsoft Online Templates | Microsoft Word Help | |||
Flash 8 Templates... Looking for better designs? Ready-Made Templates. | Microsoft Word Help | |||
Templates not opening as templates as word documents | Microsoft Word Help | |||
Mail Merge Templates from Multiple Templates Programmatically | Mailmerge |