Error 5941 Microsoft Word
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Sat, 08 Oct 2016 16:47:15 GMT by s_ac4 (squid/3.5.20)
soon) Ruby (coming soon) Getting Started Code Samples Resources Patterns and Practices App Registration Tool Events Podcasts Training API Sandbox Videos Documentation Office Add-ins Office Add-in Availability Office Add-ins Changelog Microsoft Graph API Office 365 Connectors Office 365 REST runtime error 4248 word 2013 APIs SharePoint Add-ins Office UI Fabric Submit to the Office Store All Documentation https://www.yammer.com/ http://feeds.feedburner.com/office/fmNx
Run-time Error '5941' Application-defined Or Object-defined Error
Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Run-time error
Run Time Error 5941 Word 2013
'5941' the requested member of the collection does not exist Microsoft Office for Developers > Word for Developers Question 0 Sign in to vote I have followed Greg's instructions for check boxes on http://gregmaxey.mvps.org/Add_Toggle_Objects.htmbut when I http://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_other/run-time-error-5941-not-always-but-annoyingly/b95ec1db-6928-4d87-b799-52d4f1c01f08 double click on the box it gives me the run time error. I have saved as a template (.dotm) and then saved document as a .docm but always get the same error. Would love this to work as I can not have both controls and legacy form controls in same document - good on you microsoft! Any help would be great. Wednesday, July 07, 2010 7:31 AM Reply | Quote Answers 0 Sign https://social.msdn.microsoft.com/Forums/office/en-US/8ffb33d5-a876-49c2-aaf3-22c02257c903/runtime-error-5941-the-requested-member-of-the-collection-does-not-exist?forum=worddev in to vote I assume that when you get the error, one of the two macros named CheckIt or UncheckIt is highlighted in the VBA editor. The most likely reason for that error is that the template you're working with does not contain an AutoText entry named "Checked Box" or "Unchecked Box". (Unfortunately VBA's error handler never specifies which collection it's complaining about, but in this case the AutoTextEntries collection is the only one involved in the code.) Greg's steps 3 and 4 are written for Word 2003 or earlier, and they need some additional information for Word 2007 or 2010. In Word 2007 or 2010, AutoText has become part of the larger Building Blocks feature. You should have noticed that the dialog you get when you press F3 is different from the one shown on Greg's page; now it's a Create New Building Block dialog with more boxes. To get an AutoText entry, you MUST change the Gallery box from "Quick Parts" to "AutoText". Also, to make the AttachedTemplate part of the code work, you MUST change the Save In box from Building Block.dotx to the name of the template that contains the code. One other bit: Don't save the code into a .docm document, because that will lose the AutoText entries (which can only be stor
here for a quick overview of the http://stackoverflow.com/questions/30705042/runtime-error-5941-the-requested-member-of-collection-does-not-exist site Help Center Detailed answers to any questions you http://www.tek-tips.com/viewthread.cfm?qid=1682609 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 time error 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 Runtime Error '5941' The Requested Member of Collection Does Not runtime error 4248 Exist up vote -1 down vote favorite When running the macro I am getting the following error: "Runtime Error '5941' The Requested Member of Collection Does Not Exist" The line below is highlighted in Yellow; This Macro works on the majority of users and the error has only been reported off two users. Windows(DestTemplateName).Document.Bookmarks("fCustomer").Range.Fields(1).Result.Text = Windows(SourceTemplateName).Document.Bookmarks("fCust").Range.Fields(1).Result.Text Any Help Would Be Much Appreciated. Sub PopulateBookingForm() Dim SourceTemplateName As String, DestTemplateName As String ' Set Method Statement Name SourceTemplateName = ActiveDocument.Name ' Open Heavy Cranes ICO Booking Form ChangeFileOpenDirectory "\\SERVERSHARE\HCD\HCD General\Templates\" Documents.Open FileName:= _ "\\SERVERSHARE\HCD\HCD General\Templates\Heavy Cranes ICO Booking Form.docx", _ ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, _ PasswordDocument:="", PasswordTemplate:="", Revert:=False, _ WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _ wdOpenFormatAuto, XMLTransform:="" Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting ' Set Haulage Booking Form Document Name DestTemplateName = ActiveDocument.Name ' ### START FIND AND REPLACE ' Populate Customer(Client) Windows(DestTemplateName).Document.Bookmark
Join INTELLIGENT WORK 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 Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you 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 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. VBA Visual Basic for Applications (Microsoft) Forum at Tek-Tips HomeForumsProgrammersLanguagesVBA Visual Basic for Applications (Microsoft) Forum Run-time error 5941 only in the Word templates thread707-1682609 Forum Search FAQs Links MVPs Run-time error 5941 only in the Word templates Run-time error 5941 only in the Word templates Lumpazi (TechnicalUser) (OP) 8 May 12 15:14 HelloI have been trying to get this Macro to work but I have had no luck.It works fine, but when I put my word file with the macro in "My templates" it shows me an error:Run-time error 5941The request member of the collection does not exist.The error occurs in this line:For Each Zelle In ActiveDocument.Tables(1).Rows(cboAOrt.ListIndex + 2).CellsDim Zelle As CellDim Bereich As RangeI = 0If cboAOrt.ListIndex = -1 Then cboAOrt.ListIndex = 0For Each Zelle In ActiveDocument.Tables(1).Rows(cboAOrt.ListIndex + 2).CellsSet Bereich = ActiveDocument.Range(Start:=Zelle.Range.Start, End:=Zelle.Range.End - 1)Select Case ICase 0Nr = 1Zweigstelle = Bereich.TextCase 1Strasse = Bereich.TextCase 2Ort = Bereich.TextCase 3Telefon = Bereich.TextCase 4Telefax = Bereich.TextCase 5Mail = Bereich.TextCase 6Name = Bereich.TextCase 7Titel = Bereich.TextEnd SelectI = I + 1Next ZelleActiveDocument.Close Has anybody any ideas why?Thanks for any help RE: Run-time error 5941 only in the Word templates PHV (MIS) 8 May 12 16:17 Have you tried to replace ActiveDocument with ThisDocument ? Hope This Helps, PH.FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?FAQ181-2886: How can I maximize my chances of getting an answer? RE: Run-time error 5941 only in the Wo