Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2017, 06:59 PM
macropod's Avatar
macropod macropod is offline Word 2013 is crashing when used with Access 2013 Windows 7 64bit Word 2013 is crashing when used with Access 2013 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,381
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
with:
Code:
wrdDoc.Bookmarks("Item").Range.InsertAfter TranslationItem
and, as a safeguard against errors caused by missing bookmarks, you might use:
Code:
With wrdDoc
  If .Bookmarks.Exists("Item") Then .Bookmarks("Item").Range.InsertAfter TranslationItem
End with
PS: Kindly don't start new threads on the same topic. I've moved you latest post into the original thread.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
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
Word 2013 is crashing when used with Access 2013 Word 2013 Macro Crashing Terminal Server Session exsquaddie Word VBA 1 02-18-2016 03:44 PM
Word 2013 is crashing when used with Access 2013 Office 2013 is crashing and renaming files when crashing 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
Word 2013 is crashing when used with Access 2013 Excel 2013 crashing aki Excel 2 05-26-2014 01:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft