Home > Time Error > 5941 Error Word

5941 Error Word

Contents

Also checked names in DB and Table name although code does not get to table name bit. The time now is 03:03 PM. Thank you though, your post put me on the right track, the penny dropped almost straight away and I checked the bookmarks in the sample form. Checked that numbers in doc map to Numbers in DB The Locals window shows Me Type ThisDocument/Document vRecordset Nothing VDept Value "" Type String I don't know enough to know whether my review here

Help!!! That as far as my understanding goes. Help!!! Help!!! check these guys out

Runtime Error 5941 Word

Thank you ! To determine what that member and collection is would require access to your code. If not displayed, display the Project Explorer (CTRL+r).

I've checked the reference libraries and believe that I am using the correct ones. 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 Find all threads started by Tonya C. #7 October 7th 09, 05:42 PM posted to microsoft.public.word.docmanagement Greg Maxey[_2_] external usenet poster Posts: 668 Run Time Error 5941 Tonya, Vba Error 4605 The code is below.

Why is the end of the F-35's jet nozzle 'spiky' What are the last three digits of the product of the odd numbers from 1 to 1000? Run Time Error 5941 Word Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? Without it there's no way even the best of us could discern where the problem lies. 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 I am new to working with macros.

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. Runtime Error 4248 This Command Is Not Available Because No Document Is Open I've been trying to adapt Dian Chapman's code for autofilling an Access database record from a Word Autoform. Wednesday, July 07, 2010 7:31 AM Reply | Quote Answers 0 Sign in to vote I assume that when you get the error, one of the two macros named CheckIt or Thanks, Wednesday, December 29, 2010 7:33 PM Reply | Quote 0 Sign in to vote Hi jstouse <

Run Time Error 5941 Word

Dim sourceDocument As Document Dim destDocument As Document Set sourceDocument = ActiveDocument If sourceDocument.Bookmarks.Exists("fCust") = False Then MsgBox "You are not using the correct source document. Specifically, I'm receiving the Runtime error "5941" The requested member of the collection does not exist. Runtime Error 5941 Word Tonya C. Run Time Error 5941 Word Macro wrote: We have an macro linked in our letter macro that will add three addresses at the bottom of the footer when you select the Personal Injury Macro. *Now when we

The problem is a requested member of a collection does not exist. Help!!! wrote: We have an macro linked in our letter macro that will add three addresses at the bottom of the footer when you select the Personal Injury Macro. I'm not sure what else to try?? Error 5941 The Requested Member Of The Collection

I've downloaded the sample db and word form from mousetrax.com Autoforms with grateful thanks to Dian The original form and database work fine. Pesach Shelnitz[_2_] View Public Profile View message headers Find all posts by Pesach Shelnitz[_2_] Find all threads started by Pesach Shelnitz[_2_] #6 October 7th 09, 02:21 PM posted to Pesach Shelnitz[_2_] View Public Profile View message headers Find all posts by Pesach Shelnitz[_2_] Find all threads started by Pesach Shelnitz[_2_] #5 October 6th 09, 11:50 PM posted to get redirected here What is the problem?

One other bit: Don't save the code into a .docm document, because that will lose the AutoText entries (which can only be stored in templates, not in documents). Run-time Error '5941' Application-defined Or Object-defined Error Post your code. 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 exist.

Seems that I would have to load both in order for the macro to "find" the Building Block/AutoText signature.

Gordon Bentley-Mix Word MVP "Tonya C." wrote in message ... share|improve this answer answered Jun 8 '15 at 10:09 ChipsLetten 2,3181319 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign All rights reserved. Run Time Error 5941 Word 2013 I have a different issue now so I will mark this as resolved and put out a new post.

Post your code. How can you change "system fonts" in Firefox (to increase own safety & privacy)? I am new to working with macros. vDeptCode = ActiveDocument.FormFields("bkDeptCode").Result BTW: do you see ANYTHING about a bookmark in that?

What is the problem? Office UI Fabric Microsoft Graph Better with Office Word Excel Powerpoint Access Project OneDrive OneNote Outlook SharePoint Skype Yammer Android ASP .NET iOS JavaScript Node.js PHP (coming soon) Python (coming soon) If you are not, it could be something as simple as a typo. You may have to register before you can post: click the register link above to proceed.

Message = "Enter the number of copies that you want to print" ' Set title. Implementing namespaces in plugin template First book of a series: boy disappears from his life, becomes time travelling agent Creating the door of a castle Why are homeomorphisms important? Privacy statement Community Resources O365 Technical Network MSDN Forums UserVoice Stack Overflow Follow Us Twitter Facebook Office Dev Blog © 2016 Microsoft United States - English Terms of Use Trademarks Privacy 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).

What is the problem? Jay Freedman MS Word MVP Marked as answer by Bessie Zhao Tuesday, July 13, 2010 2:18 AM Wednesday, July 07, 2010 2:10 PM Reply | Quote 0 Sign in to vote Already a member? Would love this to work as I can not have both controls and legacy form controls in same document - good on you microsoft!

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 exist. If you can indicate where the code breaks even better. 2. Are there any additional fundamentals of physics in addition to space-time, energy, mass, and charge? 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.