Error Number 5096
here for a quick overview of the site Help Center Detailed answers to any questions you might have 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 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Word error when processing multiple documents up vote 2 down vote favorite 1 Right now we have a program that opens all of the word files in a folder and adds some information to the footer. After switching from Windows XP and Word 2003 to Windows 7 and Word 2007 we have started getting the following error: Run-time error '5096': EOALPHABETICARABICARABICABJADARABICALPHABAHTTEXTCAPSCA (c:\Users...\Content.MSO\8BE508C6.docx) It occurs at random in any of the files (you can be 10 files in or 100). I thought that it might be a problem with the files being on a network drive so I modified the program to copy each file locally first, add the footer to that copy, and then copy it back out to the network. However, that didn't seem to work. I'm looking for any suggestions on how to fix the problem or possibly rewrite the solution. However, I need to keep the solution in VBA since this app is part of a bigger suite which in not ready for a .NET re-write. vba word-vba share|improve this question edited Jan 21 '11 at 20:46 asked Jan 21 '11 at 20:31 skeletank 1,89642456 1 Where does the error happen? (open, close, write ...) –Dr. belisarius Jan 21 '11 at 20:46 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted As it turns out I was able to workaround this problem by copying the word files locally, running the main code on the local copies, then copying them back out to the network. It didn't seem to be working at first because the user's machine on which I tested it did not have the most recent version of the program. share|improve this answer answered Mar 11 '11 at 14:34 skeletank 1,89642456 add a comment| up vote 0 down vote Adding this note for those still looking for answers to this
DriverDoc WinSweeper SupersonicPC FileViewPro About Support Contact Errors Troubleshooting › Runtime Errors › Microsoft Corporation › Microsoft Word › Error 5096 How To Fix Microsoft Word Error 5096 Error Number: Error 5096 Error Name:Microsoft Word Error 5096 Error Description: Error 5096: Microsoft Word has encountered a problem and needs to close. We are sorry for the inconvenience. Developer:Microsoft Corporation Software:Microsoft Word Applies to:Windows XP, Vista, 7, 8 Download NowWinThruster 2015 - Scan your PC for computer errors. Compatible with Windows 10, 8, 7, Vista, XP and 2000 Symptoms of Error 5096 http://stackoverflow.com/questions/4763476/word-error-when-processing-multiple-documents "Error 5096" appears and crashes the active program window. Your PC frequently crashes with Error 5096 when running the same program. “Microsoft Word Error 5096” is displayed. Windows runs sluggishly and responds slowly to mouse or keyboard input. Your computer periodically “freezes” for a few seconds at a time. These 5096 error messages can appear during program installation, while a http://www.solvusoft.com/en/errors/runtime-errors/microsoft-corporation/microsoft-word/5096-microsoft-word-error-5096/ Microsoft Corporation-related software program (eg. Microsoft Word) is running, during Windows startup or shutdown, or even during the installation of the Windows operating system. Keeping track of when and where your 5096 error occurs is a critical piece of information in troubleshooting the problem. Causes of Error 5096 Corrupt download or incomplete installation of Microsoft Word software. Corruption in Windows registry from a recent Microsoft Word-related software change (install or uninstall). Virus or malware infection that has corrupted Windows system files or Microsoft Word-related program files. Another program maliciously or mistakenly deleted Microsoft Word-related files. Runtime Errors such as “Error 5096” can be caused by a variety of factors, so it is important that you troubleshoot each of the possible causes to prevent it from recurring. Runtime Errors Knowledgebase Article ID: 127624 Article Author: Jay Geater Last Updated: 23-07-2016 Popularity: star rating here Download NowError Fix Learn More Tweet Recommendation: Scan your PC for computer errors. How To Fix Microsoft Word Error 5096 Below is a list of troubleshooting steps to resolve your Error 5096 probl
Community Links Social Groups Pictures & Albums Members List Calendar Search Forums Show Threads Show Posts Tag Search Advanced Search Find All Thanked Posts Go to Page... http://www.access-programmers.co.uk/forums/showthread.php?t=195224 Thread Tools Rating: Display Modes 06-30-2010, 06:41 AM #1 Manged Registered http://forums.codeguru.com/showthread.php?488606-Need-help-in-code-for-Word User Join Date: Jun 2010 Posts: 10 Thanks: 0 Thanked 0 Times in 0 Posts Weird error message when exporting info to word I have a datasheet that contains work order numbers that i have set up so that when the user clicks one a word file is created using the "template", the error number information is entered and the files is saved. The last part is the problem. When i click on the number to create the file i get this error message "5096EOALPHABETICARABICARABICABJADARABICALPHABAHTT EXTCAPSCARDTEXTCHARFORMATCHI (10-6488_2363333.DOC)". The last few numbers that are in parenthasis is the name of the file it was ment to be saved as. I finaly figured out that it may be a problem with word not being error number 5096 able to "save as". In word, when i click save as and enter an unused file name word acts like the file name IS in use and is open, giving me this error message " *file name* is currently in use. Try again later". These errors are also intermitant, not showing up every time but still very often. I fixed it once by running a diagnostic but the errors came back. Here is my code. Option Compare Database Const DOC_PATH As String = "H:\Access Files\Work Orders\" Const DOC_NAME As String = _ "BlankWO6.doc" Private Sub WorkOrder_Click() Dim appWord As Word.Application Dim doc As Word.Document Dim rst As DAO.Recordset Dim strSQL As String Dim strReportsTo As String Dim varX As String Dim URL As String Dim CNM As String Dim URM As String Dim URS As String Dim dbWorkOrders As Object Dim rstWOs As Object Dim fldEnumerator As Object Dim fldColumns As Object Set dbWorkOrders = CurrentDb() Set rstWOs = dbWorkOrders.OpenRecordset("Work Order") Set fldColumns = rstWOs.Fields On Error Resume Next Set appWord = GetObject(, "Word.application") If Err = 429 Then Set appWord = New Word.Application Err = 0 End If '---------' ' Look Up ' '---------' URL = Nz(DLookup("[url]", "[Work Order
Forum Visual Basic Programming Visual Basic 6.0 Programming Need help in code for Word If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 14 of 14 Thread: Need help in code for Word Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode November 21st, 2009,07:03 PM #1 en7167 View Profile View Forum Posts Junior Member Join Date Nov 2009 Posts 7 Need help in code for Word Hello all, Is it possible in a Word 2007 document to use a bookmarked word as a SaveAs file name. If not, is there any other way to reference a word to use as the SaveAs file name? Please reply with the code. Your help is very much appreciated. Reply With Quote November 23rd, 2009,01:03 AM #2 HanneSThEGreaT View Profile View Forum Posts CG Bouncer Power Poster Join Date Jul 2001 Location Sunny South Africa Posts 11,223 Re: Need help in code for Word Something like this ¿ : Code: Sub FindBookmarks() ' ' FindBookmarks Macro ' Macro recorded 11/23/2009 by Hannes ' Dim strFound As String Dim stBookmark As Bookmark ActiveDocument.Bookmarks.ShowHidden = True If ActiveDocument.Bookmarks.Count >= 1 Then For Each stBookmark In ActiveDocument.Bookmarks stBookmark.Select strFound = stBookmark.Range.Text Next stBookmark ChangeFileOpenDirectory "C:\Documents and Settings\hannes\Desktop\" ActiveDocument.SaveAs FileName:=strFound, FileFormat:=wdFormatDocument, _ LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _ :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _ SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _ False End If End Sub Here, I store the bookmark's text inside the strFound variable, and then save the document using the strFound variable as a name. This works perfectly if there is only one bookmark present, if you are looking for a specific bookmark, then you'd need to check the existance of a bookmark first All my Articles Hannes Reply With Quote November 23rd, 2009,04:52 PM #3 en7167 View Profile View Forum