Home > Time Error > Word 2010 Macro Run Time Error 5941

Word 2010 Macro Run Time Error 5941

Contents

An Array of Challenges #2: Separate a Nested Array Help, my office wants infinite branch merges as policy; what other options do we have? Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. That's why I explained how to add a window for a file that is open. Join this group Popular White Paper On This Topic APIs for Dummies 5Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No http://evollux.net/time-error/word-macro-run-time-error-5941.html

I got the following message Run-time error '5941': The requested member of the collection does not exist. More About Us... Michael S. If not displayed, display the Project Explorer (CTRL+r).

The Requested Member Of The Collection Does Not Exist Word 2013

Either way I do it, I'm still receiving the same error. The code is apparently trying to do something with something that doesn't exists (e.g., put text in a table cell that doesn't exist). Stay logged in Welcome to PC Review! PC Review Home Newsgroups > Microsoft Word > Microsoft Word Document Management > Home Home Quick Links Search Forums Recent Posts Forums Forums Quick Links Search Forums Recent Posts Articles Articles

Copyright 2004 - VBA Express Log in or Sign up PC Review Home Newsgroups > Microsoft Word > Microsoft Word Document Management > Run Time Error 5941 Discussion in 'Microsoft Runtime Error 5941 The Requested Member of the Collection Does Not Exist BernRI asked Dec 8, 2013 | Replies (5) Every time I run this macro Sub KitLabels() ' ' KitLabels Specifically, I'm receiving the Runtime error "5941" The requested member of the collection does not exist. Runtime Error 4605 What matters is whether the file is visible - that is, whether there is a window open for the file.

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! Run-time Error '5941' Application-defined Or Object-defined Error I tried modifying the code to With ActiveDocument.ContentControls("Projects").DropdownListEntries using the ContentControls instead of FormFields but I still get the same runtime error (5941) with the above line. I've tried using FormFields, I've tried ContentControls but cannot get it to work. You'll be able to ask any tech support questions, or chat with the community and help others.

Word never ceases to amaze me... Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by HomeForumsProgrammersLanguagesVBA Visual Basic for Applications (Microsoft) Forum Run-time error 5941 Not the answer you're looking for? Register now while it's still free!

Run-time Error '5941' Application-defined Or Object-defined Error

Without it there's no way even the best of us could > discern where the problem lies. Why did the rebels need the Death Star plans? The Requested Member Of The Collection Does Not Exist Word 2013 Now when > > we select the letter macro and pick the Personal Injury selection, we get the > > Run Time Error 5941 - The requested member of the collection The Requested Member Of The Collection Does Not Exist Word 2010 Click on the macro, then click the button to ADD it to the list on the right.

wrote: > Where would I find the code. http://evollux.net/time-error/word-2010-runtime-5941.html The macro can insert a footer. In order to give a macro a different name, simply change what appears after the word "Sub". That's why I'm not giving you the exact menu names - I don't want to confuse you!)Cindy Meister, VSTO/Word MVP Marked as answer by Calvin_GaoModerator Monday, July 18, 2011 6:51 AM Run Time Error 5941 Word 2013

Here is my code Sub KitLabels() ' ' KitLabels Macro ' Macro recorded 9/28/2009 by MVP ' ActiveDocument.MailMerge.DataSource.QueryString = _ "SELECT * FROM `'Credit Card Data$'` WHERE `Kit 1` = '12/15/13' I'm running Word & Access 2007, and VBA 6.5. You're now being signed in. Check This Out Results 1 to 3 of 3 Thread: Run-time error '5941': The requested member of the collection does not exist.

Monday, July 11, 2011 11:43 AM Reply | Quote 0 Sign in to vote Hi "Boots" I'm amazed that just pulling the stuff apart worked. Advanced Search VBForums Visual Basic Office Development [RESOLVED] Runtme Error 5941 If this is your first visit, be sure to check out the FAQ by clicking the link above. Related 0Requested Member of the Collection Does Not Exist in Office 2007 and Office 20100VBA Error 4198 “Runtime Error” With Paste0Can't get value from text box, runtime error 424 object required0Requested

Now when we select the letter macro and pick the >>> Personal Injury selection, we get the Run Time Error 5941 - The >>> requested member of the collection does not

The college in 'Electoral College' Are there any known incidents of ejections by capsule? If you can indicate where the code breaks > > even better. > > > > 2. Close Box Join Tek-Tips Today! Yes I am using Word 2010 and Windows 7 64 bit.

Thanks Reply With Quote Quick Navigation Word Help Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Announcements Announcements Introductions VBA Code & Other Help How To start viewing messages, select the forum that you want to visit from the selection below. Could > you assist me, please? > > "Greg Maxey" wrote: > >> On Oct 6, 4:56 pm, Tonya C. <> wrote: >>> We have an macro linked in our letter this contact form Registration on or use of this site constitutes acceptance of our Privacy Policy.

No, create an account now. 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. Monday, July 11, 2011 9:44 AM Reply | Quote 0 Sign in to vote Hi "Boots" I was going to suggest the same thing as Tony and am as surprised as What are the survival chances?

Hope you can find what I am obviously missing! Can I do without? Already a member? In the code "{ exec >/dev/null; } >/dev/null" what is happening under the hood?

Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next dim all variables as required Try: Sub Insert_Footerh() Dim oRng As Word.Range Set oRng = ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range oRng.Collapse wdCollapseStart ActiveDocument.AttachedTemplate.BuildingBlockEntries("alphabet).Insert _ Where:=oRng, RichText:=True End Sub Formatting tags added by mark007 Greg Visit my website: http://gregmaxey.com Reply With Login with LinkedIN Or Log In Locally Email Password Remember Me Forgot Password?Register ENGINEERING.com Eng-Tips Forums Tek-Tips Forums Search Posts Find A Forum Thread Number Find An Expert Resources Jobs Michael Meyers-Jouan replied Dec 8, 2013 You are using the Windows class, which represents the set of windows that Word has open.

Now could you please tell me how to rename it and assign it to a button with icon on Quick Access. The strange ordering of Sharkovskii In what spot would the new Star Wars movie "Rogue One" go in the Machete Order?