Msword.olb Error
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Wed, 19 Oct 2016 11:32:58 GMT by s_ac4 (squid/3.5.20)
8.7 Microsoft Office for Developers > Access for Developers Question 0 Sign in to vote Hi guys, I Need Some Help I use this code to fill a word document with records from a access form: Option Compare Database Private Sub Command14_Click() Call fillwordform End Sub Function fillwordform() Dim appword As Word.Application Dim doc As Word.Document Dim Path As String On Error Resume Next Error.Clear Path = "C:\Users\Home\Desktop\Print.docx" Set appword = GetObject(, "word.application") If Err.Number <> 0 Then Set appword = New Word.Application app.Word.Visible = True End If Set doc = appword.Documents.Open(Path, , True) With doc .FormFields("Text1").Result = Me.Field1 .FormFields("Text2").Result = Me.Field2 .FormFields("Text3").Result = Me.Field3 End With appword.Visible = True appword.Activate http://answers.microsoft.com/en-us/msoffice/forum/msoffice_access-mso_winother/searching-for-reference-file-mswordolb/fe403074-8e12-41e1-81eb-fcce4fd81c9f Set doc = Nothing Set appword = Nothing End Function The project was made on my home pc using Office 2016 and works fine but when a try to run the code on my pc from work i get this error: "Your Microsoft Access database or project contains a missing or broken reference to the file 'MSWORD.OLB' version 8.7" On pc from work I have word 2013 and access runtime 2013. Edited by Ricanos Wednesday, https://social.msdn.microsoft.com/Forums/vstudio/en-US/d86a6d29-c33f-41df-9c22-64bb45c2ed16/missing-or-broken-reference-to-the-file-mswordolb-version-87?forum=accessdev March 30, 2016 3:56 PM Wednesday, March 30, 2016 3:54 PM Reply | Quote Answers 0 Sign in to vote >>>The project was made on my home pc using Office 2016 and works fine but when a try to run the code on my pc from work i get this error: "Your Microsoft Access database or project contains a missing or broken reference to the file 'MSWORD.OLB' version 8.7" On pc from work I have word 2013 and access runtime 2013.<<< According to your description, I suggest that you could consider using late binding, if you want to support multiple versions of Office. For more information, click here to refer about Using early binding and late binding in Automation Marked as answer by David_JunFengMicrosoft contingent staff, Moderator Thursday, April 07, 2016 9:11 AM Thursday, March 31, 2016 3:21 AM Reply | Quote Moderator 0 Sign in to vote As David has mentioned, the way to avoid these things is to use Late Binding. Late Binding allows you to ignore the "version" of the library on the target machine, and have your code use whatever is available on that machine. There are caveats to using late binding, however: You don't get Intellisense, which can be very, very helpful during developmentYou must still be aware of the "lowest" version of the library your u
You can fix the problem in one of two ways: Run repair on the Microsoft Office installation: Office 2003 on XP: https://casecomplete.zendesk.com/hc/en-us/articles/200684947-Word-Installation-Fixup-Required Control Panel->Add or Remove Programs Select Microsoft Office Click Change Select "Reinstall or Repair"; Click Next Select "Detect and Repair errors in my Office installation"; Click Install You http://www.utteraccess.com/forum/index.php?showtopic=1742550 may be asked for the Microsoft InstallationDVD or file when you do this - check with your IT department for this Office 2007/2010 on Vista/Windows 7: Control microsoft word Panel ->Programs Programs->Programs and Features Select Microsoft Office and then select Change from the header (or Right Mouse Click on Office and select Change from the context menu). Select Repair and then click Continue You may be asked for the Microsoft InstallationDVD or file when you do this - check with your IT department for this microsoft word 15.0 -OR- Manually reregister the Word type library by doing the following. Note, these instructions are based on an article from Microsoft’s knowledge base. For more information, see: http://support.microsoft.com/kb/292744/en-us Find the file named Msword.olb on your system. You can do a file system search, however, it will likely be in one of the following locations: C:\Program Files\Microsoft Office\Office12 (for Word 2007) C:\Program Files\Microsoft Office\Office11 (for Word 2003) Then, from the command line (All Programs/Accessories/Command Prompt), use Regtlib.exe together with the full path to Msword.olb to reregister the library. The article states that Regtlib.exe is included in the Windows Libraries Update. However, we have found that in most systems, it is available in this location: C:\windows\system32\urttemp If this is the case for you, then to reregister the Word 2003 library you would need to type the following at the command prompt: C:\windows\system32\urttemp\regtlib "c:\program files\microsoft office\office11\msword.olb" Have more questions? Submit a request Was this article helpful? 0 out of 0 found this helpful Comments Powered by Zendesk
Custom Search UtterAccess Forums>Microsoft® Access>Access Modules msword.olb Forum HomeSearchHelpUA Messages|-- UtterAccess.com NewsAccess Knowledge Center|-- Access Code Archive|-- Access Knowledgebase / FAQ|-- Access TutorialsMicrosoft® Access|-- Local Access User Groups (AUGs)|-- Interface Design|-- Access Q and A|-- Access Tables + Relationships|-- Access Queries|-- Access Forms|-- Access Reports|-- Access Macros|-- Access Modules|-- Access Date + Time|-- Access Errors + Error Handling|-- Access Built-in Functions|-- Access Searching + Data Mining|-- Access Records|-- Access Security|-- Access Automation|-- Access Database Container|-- Tool bars, Menu bars + Ribbon|-- Access Services (Web Databases)|-- Access Data Access Pages (Deprecated)|-- Access Data Projects - ADP|-- Access Runtime, Packaging & DeploymentAnd More...|-- Microsoft SQL Server|-- SQL Server Reporting Services|-- Microsoft SharePoint|-- Microsoft Internet Explorer|-- Visual Basic 6 and Earlier|-- Visual Basic 2003 and Later|-- ASP and VBScript|-- Web Development|-- PHP, Perl, MySQL and Postgres|-- Other Database Engines|-- BI Tools and Applications|-- JAVA and C#|-- GraphicsMicrosoft® Office|-- Microsoft Excel|-- Microsoft Excel FAQs|-- Microsoft Word|-- Microsoft Outlook|-- Microsoft PowerPoint|-- Microsoft FrontPage/Exp. Web|-- Other Microsoft ProductsPC|-- Network Issues|-- Q & A - Hardware|-- Q & A - Software|-- Q & A - Other PC|-- Virus + Security DiscussionUtterAccess Odds and Ends|-- General Chat|-- Q & A - UtterAccess.com Forums|-- Q & A - Access Wiki Options alljView Member Profile Nov 11 2008, 05:03 PM Post#1Posts: 210Joined: 27-September 07Hi I want to eliminate msword.olb if possible form my references as it is a pain to put in a runtime app esp if the person already has this in their office11 directory. (If the app is removed using the installshield app it is removed) The code I have that is a problem without msword.olb is: Dim objword As Word.Document Set objword = GetObject(str) '("C:\program files\clinicians MIND\Dxmerge.doc", "word.Document") objword.Application.Visible = True objword.MailMerge.Destination = wdSendToNewDocument objword.MailMerge.Execute SendKeys "{enter}" objword.CloseIs there a way around this code? If not