Microsoft Visual Basic Run Time Error 5941
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 18:21:26 GMT by s_wx1011 (squid/3.5.20)
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel run-time error '5941' application-defined or object-defined error 9 Documentation APIs and reference Dev centers Samples Retired content We’re run time error 4605 visual basic sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Word 2007 run time error 5941 word 2013 Word 2007 Developer Reference Concepts Concepts Requested Member of the Collection Does Not Exist Requested Member of the Collection Does Not Exist Requested Member of the Collection Does http://answers.microsoft.com/en-us/office/forum/office_2010-word/run-time-error-5941-not-always-but-annoyingly/b95ec1db-6928-4d87-b799-52d4f1c01f08 Not Exist Concepts About the Chart Object Model... Adding Controls to a Document Adding Controls to a UserForm Applying Formatting to Text Assigning Ranges Auto Macros Automating Common Word Tasks Built-in Dialog Box Argument Lists Communicating with Other Applications Conceptual Differences Between WordBasic and Visual Basic Control and Dialog Box Events Converting WordBasic Macros to Visual Basic https://msdn.microsoft.com/en-us/library/bb221217(v=office.12).aspx Creating a Custom Dialog Box Creating a UserForm Creating Frames Pages Determining Whether the Application Property Is Necessary Displaying a Custom Dialog Box Displaying Built-in Word Dialog Boxes Editing Text Error Accessing a Table Row or Column Finding and Replacing Text or Formatting Finding Out Which Property or Method to Use Frequently Asked Visual Basic Questions Initializing Control Properties Inserting Text in a Document Looping Through a Collection Miscellaneous Tasks Modifying a Portion of a Document Modifying a Word Command Object Doesn't Support this Property or Method OLE Programmatic Identifiers Predefined Bookmarks Prompting for Information Recording a Macro to Generate Code Referring to the Active Document Element Requested Member of the Collection Does Not Exist Returning a Single Object from a Collection Returning an Object from a Collection Returning Text from a Document Revising Recorded Visual Basic Macros Selecting Text in a Document Setting Control Properties Storing Values When a Macro Ends Understanding Objects, Properties, and Methods Using ActiveX Controls on a Document Using ActiveX Controls on Word Docum
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 http://www.tek-tips.com/viewthread.cfm?qid=1682609 Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best http://stackoverflow.com/questions/30705042/runtime-error-5941-the-requested-member-of-collection-does-not-exist 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 time error 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 run time error 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-28
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 6.2 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 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.Bookmarks("fCustomer").Range.Fields(1).Result.Text = Windows(SourceTemplateName).Document.Bookmarks("fCust").Range.Fields(1).Result.Text ' Populate Version Windows(DestTemplateName).Document.Bookmarks("fVersion").Range.Fields(1).Result.Text = Windows