Reply With Quote 09-16-2010,01:22 AM #3 AndyB3004 View Profile View Forum Posts View Blog Entries View Articles VBAX Newbie Joined Sep 2010 Posts 2 Location Gerry, Many thanks for your help. Oksa View Public Profile Find all posts by Oksa « Previous Thread | Next Thread » Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) Thread Tools Seems very silly to me. DKTVAV posted Oct 27, 2016 at 4:00 PM Pixelated Floor Plan When Inserting Into Visio Marcus Zizzo posted Oct 26, 2016 Help with Duplicate Output Alias Error 'Exp1' DBA PJ posted check over here
How does it work? This article contains information that shows you how to fix Word Runtime Error 5485 both (manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages I have tried printing the value of the global > string variable and it is same. Just click the sign up button to choose a username and then you can ask your own questions on the forum. http://www.vbaexpress.com/forum/showthread.php?34041-Error-Handling-for-a-Bad-password-error-in-Word-(VBA)
Novice Computer User Solution (completely automated): 1) Download (Word Runtime Error 5485) repair utility. 2) Install program and click Scan button. 3) Click the Fix Errors button when scan is completed. You may have to register before you can post: click the register link above to proceed. Not sure how to get rid of this error. subscribe
Check out the Document.ProtectionType property. There can be many events which may have resulted in the system files errors. Find all threads started by Cindy M. « Previous Thread | Next Thread » Thread Tools Show Printable Version Download PDF Version Email this Page Display Modes Linear Mode Switch I've solved this problem in the original topicthread, my apologies for the wasted post.-BobPost by BeeawwbHi everybody,Tidying up my code today and I realise that my error trapping is no longerworking.
You may have to register before you can post: click the register link above to proceed. When I turn off the error handling (On Error gotoErrorCatch) I correctly get a Microsoft Visual Basic error, "Run-time error'5485': The password is incorrect"; End; Debug; Help.So the error is clearly Join & Write a Comment Already a member? Thereby negating the need for the ugly popup, or any interaction from the Users.
Code: myDoc.Unprotect This call causes a dialog to pop up in Word 2000 but in Word 2003 error 5485 (the password is incorrect) is raised. http://www.pcreview.co.uk/threads/document-unprotect-give-runtime-error-5485-the-password-is-incorrect.2792261/ Please unprotectmanually before use.", vbCritical, "Password Detected")Else: MsgBox (Err.Number & " - " & Err.Description)End IfThe problem is, I've just tested this with a password protected document,and sure enough, an error Code: myDoc.Unprotect This call causes a dialog to pop up in Word 2000 but in Word 2003 error 5485 (the password is incorrect) is raised. Sub toolsprotectdocument() DocPass = "Password" If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect Password:=DocPass, noReset:=True, Type:=wdAllowOnlyFormFields Else Dialogs(wdDialogToolsUnprotectDocument).Show End If End Sub ToddC, Sep 29, 2009 #1 Advertisements ToddC Guest ok, I'll
This throws an error. Cool! When I open a word document in comments only mode from my application I am protecting it using a password. this content MS Word MS Office Advertise Here 757 members asked questions and received personalized solutions in the past 7 days.
I appreciate what you are saying, however to give some clarity on the situation, basically there are two libraries of forms (built in word). Robert Douglas [email protected] I don't think you can record such a macro; instead, it must be programmed from start. This worked on our XP computers.
Nevertheless, it seems silly to me. Member Login Remember Me Forgot your password? Oksa View Public Profile Find all posts by Oksa #6 06-13-2006, 01:29 PM JRPARKE Regular Join Date: Oct 2003 Location: Salt Lake City Posts: 82 Quote: Originally Posted Join & Ask a Question Need Help in Real-Time?
It's easy to trap that error and proceed to the next document. Yes, to use the formfields the document MUST be protected for forms. We're a friendly computing community, bustling with knowledgeable members to help solve your tech questions. http://techkumar.com/word-error/word-error-in-cocreate.html Then it would not matter which forms it is...which is what happens anyway.
Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. I previously realised that when using oDoc.Unprotect, if thepassword was incorrect I would get error 5485. While this approach did work in Word 2000, I have come to the conclusion that it doesn't work in Word 2007. Guest > I am using Word.Application and Word.Document objects in Microsoft > Visual Basic 6. > > When I open a word document in comments only mode from my application I
My app checks that property before it starts looping. My app checks that property before it starts looping. As they are protected for 'Form fields the Spell check is disabled & I very much want the Spell check enabled. All rights reserved.
This corrupted system file will lead to the missing and wrongly linked information and files needed for the proper working of the application. This is a bit of code that should work if you have the right password: (CODE) Go to Solution 4 Comments LVL 76 Overall: Level 76 MS Word 65 MS Seems simple enough, but I'm not sure why this is happening. JRPARKE View Public Profile Find all posts by JRPARKE #7 06-14-2006, 12:09 AM Oksa Freshman Join Date: Jan 2006 Location: Finland Posts: 25 Quote: Originally Posted by JRPARKE
More About Us... If the document is not password protected, the parameter is ignored. I have two large sets of protected forms which are opened via the same portal. Make sense?
Or do I have toexplicitly define it?Thanks for your help,-Bob Beeawwb 2007-08-21 06:36:00 UTC PermalinkRaw Message Oops, here I thought my PC had crashed an not posted my original thread(which didn't