![]() |
|
#1
|
||||
|
||||
![]()
I see no indication that either of the suggestions in my previous reply have been implemented.
As for the Access code in your sample DB, there's nothing inherently 'wrong' with it, though I note that what you're calling a template is actually a document - and that you're opening it as such. A Word template would have a .dotx extension and you'd create a new file from it via the .Documents.Add method. Regarding the code you originally posted at AccessForums, I note you had a problem with this line: Set wrdRange = wrdDoc.GoTo(What:=wdGoToBookmark, Name:="Item") That could, of course, occur if the document lacked such a bookmark, besides with it would be more efficient to replace all of: Code:
Set wrdRange = wrdDoc.GoTo(What:=wdGoToBookmark, Name:="Item") wrdRange.Select wrdRange.InsertAfter TranslationItem Code:
wrdDoc.Bookmarks("Item").Range.InsertAfter TranslationItem Code:
With wrdDoc If .Bookmarks.Exists("Item") Then .Bookmarks("Item").Range.InsertAfter TranslationItem End with
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word/Outlook 2013 is crashing with ntdll.dll/MSVCR100.dll | nomorehugs | Office | 1 | 01-25-2017 12:21 AM |
![]() |
exsquaddie | Word VBA | 1 | 02-18-2016 03:44 PM |
![]() |
Brewski | Office | 1 | 09-21-2015 09:04 PM |
Outlook 2013 Crashing 5-10 seconds after opening | armiller17 | Outlook | 0 | 11-18-2014 05:51 PM |
![]() |
aki | Excel | 2 | 05-26-2014 01:38 AM |