Microsoft Visual Basic Runtime Error 5981
Contents |
run a template which includes macros: Run-time word cannot open existing file normal error '5981' (0x800A175D): Could not open macro storage
Could Not Open Macro Storage Word 2010
Cause The macros refer to another template which is not associated with
Could Not Open Macro Storage Word 2013
the template you are trying to open. e.g.: you built a template with some macros for entity "salesorder" but the template
Word Cannot Open The Existing File Normal.dotm 2013
refers to the quote.dot file. Solution To deal with this problem you'd have to built the template from scratch and pay attention to the references in the VB-project of the template.You can copy contents from another template but do not open word cannot open the existing file (normal) 2016 another template and save it as a new one as in this case the reference to the old template will be set by default by MS Word. Related Articles No Related Articles Available. Article Attachments No Attachments Available. Related External Links No Related Links Available. Help us improve this article... What did you think of this article? poor 1 2 3 4 5 6 7 8 9 10 excellent Tell us why you rated the content this way. (optional) Approved Comments... No user comments available for this article. Created on 27.10.2006. Last Modified on 27.10.2006. Last Modified by MSCRM-Addons ->Team. Article has been viewed 13588 times. Rated 4 out of 10 based on 25 votes. Print Article Email Article
FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo word error 5981 Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your word cannot open the existing global template normal.dotm mac Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you word cannot open the existing file normal dotm 2016 are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This http://support.mscrm-addons.com/instantkb/article.aspx?id=10125 Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. Visual Basic(Microsoft): Version 5 & 6 Forum at Tek-Tips HomeForumsProgrammersLanguagesVisual Basic(Microsoft): Version 5 & 6 Forum Run-time error '5981' - Could not open Macro Storage thread222-78267 Forum Search FAQs Links http://www.tek-tips.com/viewthread.cfm?qid=78267 MVPs Run-time error '5981' - Could not open Macro Storage Run-time error '5981' - Could not open Macro Storage be17 (TechnicalUser) (OP) 30 Apr 01 13:51 Does anybody know what this error message means. . . ."Run-time error '5981' - Could not Open Macro Storage"?I have a program in VBA set up for our employees so that they keep track of the amount of work that they do (they are secretaries).Each time they work on a document, they click on the program, which then automatically inserts the number of characters of that document into another page to be added up in order to calculate their incentive bonus.There are many different templates (in Word) that they use to do their work and one template in particular seems to be giving this error when they click on their incentive program that I have created.It has been working fine for months and then it just started to do this late last week.When I hit "debug", it brings me to the line of code that says "With ActiveDocument".Also, when I
here for a quick overview of the site Help Center Detailed answers to any questions you might have http://stackoverflow.com/questions/13981776/vba-in-ms-access-linking-to-word-error-code-5981 Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just not open like you, helping each other. Join them; it only takes a minute: Sign up VBA in MS Access linking to Word - error code 5981 up vote 2 down vote favorite I have an Access database which creates custom Word documents based on data in the database. I have been running it successfully for the past word cannot open 10 years through multiple computer and software upgrades. I have just installed the program on a new computer (Windows 7) and I am getting an error 5981 - Could not open macro storage. The code is tripping at the ** line below: Public Function CreateIndividualizedReport(FileDescription As String, FormTemplate As String, ClientFile As String, CallTheFile As String, Optional ClientType As Integer) As Boolean CreateIndividualizedReport = False Set glbWordObj = New Word.Application FilePath = DLookup("FilePath", "tblFileLocation", "FileDescription = '" & FileDescription & "'") **Set WordObjDoc = glbWordObj.Documents.Add(FilePath)** I have searched online for this but all solutions have either not worked (renaming the Normal.dot file) or seem to be for much older versions of windows (most posts of this error seem to date from the early 2000's) Anyone seen this problem recently or used different code to interface with Word? ms-access ms-word share|improve this question edited May 15 '15 at 16:18 Jota 10.7k52960 asked Dec 20 '12 at 22:47 Jane 1112 1 It works for me (Access 2