All you need is a little fixation so as long as you know the major cause of the issue; you will certainly know the best solution to implement. This corrupted system file will lead to the missing and wrongly linked information and files needed for the proper working of the application. I was wondering if I could put > the password in a module and reference it instead of putting the > password several times in my sub-routines? > > I created Your name or email address: Do you already have an account? weblink
If > so, try unprotecting it, then reprotecting it for Forms, but without using a > password. You are mixing names and unnamed arguments in the same command. This website should be used for informational purposes only. Nevertheless, there's no need to think so much about that, one should remember that Visual Basic Runtime Error 5485 will always be there.
I am assigning a GUID as password and storing it in a global string variable. Nevertheless, it seems silly to me. As you go along, see what's happening in the document, or where the macro encounters trouble. Need Help?
Then the code would still be able to unprotect the form for spell-check. Aug 28, 2003 Replace Word's Error Message Kevin R, Sep 15, 2003, in forum: Word VBA Replies: 1 Views: 66 Kevin R Sep 15, 2003 Error message "Project is Unavailable" when Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help Document.Unprotect give runtime error 5485 - The password is incorrect Author Name Remember Me? The code I'm currently using is detailed below (system names & passwords simplified for confidentiality purposes) Public FormType As String Public Sub cmdFormsNo_Click() ' This is activated by the user pressing
Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... Connect with top rated Experts 13 Experts available now in Live! Also, if i use the protect Form option and dont > set a password as described above, everything works fine. read this post here Code tries with "******x".
whilst some may thereafter try the other button, many may not and this could lead to the tool not being as effective as it could be. If you have two monitors, put the macro window (this is called the VBE -- I think for visual basic environment) in one monitor and the document in the other. RE: spell check in protected forms Microsoft Office Page 1 of 2 1 2 > View First Unread Thread Tools Display Modes 17-09-2007, 05:02 PM #1 Dorothy However, to 'cater for any legacy forms you may have, the following 'loop works around the possibility that it might be 'preceded by a tab Pos = InStr(CorrectedError, vbTab) Do While
Copyright © 2004 - VBA Express Log in or Sign up PC Review Home Newsgroups > Microsoft Word > Microsoft Word Document Management > Document.Unprotect give runtime error 5485 - The Microsoft Office Forums Forums > Archive > Newsgroup Archive > Word Newsgroups > Word VBA > Forums Forums Quick Links Search Forums Recent Posts Members Members Quick Links Notable Members Current Join & Ask a Question Need Help in Real-Time? View Public Profile View message headers Find all posts by Cindy M.
So what's the catch? have a peek at these guys Not sure how to get rid of this error. The problem is that when I protect the word > template "Tools, Protect Document" with the editing restrictions set > to "Filling in Forms" I get the Visual Basic Error of Log in or Sign up Microsoft Office Forums Forums > Archive > Newsgroup Archive > Word Newsgroups > Word VBA > VB Error message "The Password is incorrect"?
All rights reserved. Office / Productivity Office Suites-Other MS Office MS Word How to Create a Table of Contents in Word Video by: Leslie Learn how to make your own table of contents in I don't understand what you are asking me to do. "Bear" wrote: > Dorothy: > > I think the VBA might be telling you that your document is protected with a check over here Password Home Articles Register Forum RulesUser Blogs Gallery Community Community Links Social Groups Pictures & Albums Members List Go to Page...
The content you requested has been removed. FmFld.Range.LanguageID = wdEnglishUK 'Or whichever language is appropriate for you 'If the current form field contains errors, spellcheck the text in it If FmFld.Range.SpellingErrors.Count > 0 Then 'The following condition is One of the best solution to this problem is to find out where the error comes to know what move to make.
One of the Office.developer newsgroups would be a better place to ask such a question. I'm asking you to do some things to troubleshoot the problem. When I use the same global string variable to unprotect the document, I get an error saying the password is incorrect. Simply put: Sub ErrorTrapPassword() On Error GoTo fixthis: ActiveDocument.Unprotect Exit Sub fixthis: If Err.Number = 5485 Then ActiveDocument.Unprotect "gerry" End If End Sub Formatting tags added by mark007 Say the document
One disadvantage of that move is it will turn the computer to its default state and you may lose some essential documents. Carl, Oct 2, 2003, in forum: Word VBA Replies: 0 Views: 126 Carl Oct 2, 2003 Word Error message help!! Do While Not FmFldCount = _ oSection.Range.FormFields.Count oDoc.Undo Loop 'Also due to a Word bug, if the formfield is preceded by a 'tab, the text within the formfield may now be this content Note: This article was updated on 2016-10-27 and previously published under WIKI_Q210794 Contents 1.What is Visual Basic Runtime Error 5485 error? 2.What causes Visual Basic Runtime Error 5485 error? 3.How to
More About Us... Register Help Remember Me? Portal Forum FAQ Calendar Forum Actions Mark Forums Read Quick Links View Site Leaders Knowledgebase Articles Blogs Resources Consulting Services Training PayPal Donation Advanced Search Forum Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by Not only that, but the user does not have to even deal with the "form 1 or 2" popup.
I.E. Not sure how to get rid of this error. This can take place in any operating system. When I use the same global string variable to unprotect the document, I get an error saying the password is incorrect.
If so, then: "so they might press the wrong one," does not make sense, as they are "pressing" what exactly? Unprotect it -- I'm thinking this will > require a password. Works like a charm! 0 Featured Post Highfive Gives IT Their Time Back Promoted by Highfive Highfive is so simple that setting up every meeting room takes just minutes and every Post navigation Previous PostLotr Trilogy Extended Edition RuntimeNext PostRemote Application Runtime Win32 Version - Search for: Proudly powered by WordPress Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) >
If you only have one monitor, tile the VBE and the document either vertically or horizontally so you can see both at once. The time now is 01:27 AM. - Contact Us - Microsoft Word Forum WordBanter forum home - FAQ - Links - Privacy Statement - Top Powered by vBulletin Version 3.6.4Copyright ©2000 I tried to do spell check as the user would and got the error message. Solved 5485 error on SpellCheck Word2010 macro Posted on 2012-11-06 MS Applications MS Office MS Word 1 Verified Solution 4 Comments 793 Views Last Modified: 2012-11-07 The SpellCheck routine which is
Sign up now! what it currently does is it initiates a popup asking 'form type 1 or 2?' and dependant on their response is whether it performs the unlock & spell check & re-lock