Home > Time Error > Run Time Error 5941 The Requested Member Of The Collection

Run Time Error 5941 The Requested Member Of The Collection

Contents

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 Ads #2 October 6th 09, 10:08 PM posted to microsoft.public.word.docmanagement,microsoft.public.word.vba.general Gordon Bentley-Mix[_2_] external usenet poster Posts: 154 Run Time Error 5941 Two suggestions: 1. Unfortunately people equate the two - formfields and bookmarks. Put this as the first line in the macro ... check over here

If you're having a computer problem, ask on our forum for advice. Mifty Reply With Quote 09-10-2010,10:43 AM #5 fumei View Profile View Forum Posts View Blog Entries View Articles VBAX Wizard Joined May 2004 Posts 6,713 Location And use Option Explicit!!!!! Post your code. Below is the code and I've highlighted in red the line where the error occurs. https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_other/run-time-error-5941-not-always-but-annoyingly/b95ec1db-6928-4d87-b799-52d4f1c01f08

Run Time Error 5941 The Requested Member Of The Collection

I'm still getting the error in the same place. The credit belongs to the man in the arena, whose face is marred by dust and sweat and blood, who strives valiantly...who knows the great enthusiasms, the great devotions, who spends wrote: Where would I find the code. To > determine what that member and collection is would require access to > your code. > Tonya C., Oct 7, 2009 #6 Greg Maxey Guest Tonya, With the document

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. The time now is 10:57 AM. 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. Run Time Error 5941 Word 2013 Generated Tue, 20 Dec 2016 15:57:20 GMT by s_hp84 (squid/3.5.20) {{offlineMessage}} Try Microsoft Edge, a fast and secure browser that's designed for Windows 10 Get started Store Store home Devices Microsoft

I have a different issue now so I will mark this as resolved and put out a new post. Try something like this and tell us which line gets highlighted: Sub Macro1() Dim tmpl as Word.Template Application.Templates.LoadBuildingBlocks Set tmpl = Application.Templates( _ "C:\Users\Josephine\AppData\Roaming\Microsoft\Document Building Blocks\1033\14\Building Blocks.dotx") tmpl.BuildingBlockEntries("HomeAddress").Insert Where:=Selection.Range, _ RichText:=True Find and click your template or document project and the module containing your macro. https://social.msdn.microsoft.com/Forums/office/en-US/ab2a7e5f-6bea-4214-ac0a-d718579ce1a9/runtime-error-5941-the-requested-member-of-the-collection-does-not-exist?forum=worddev So let's break the recorded macro down into smaller pieces and see exactly where the problem is coming from.

Your name or email address: Do you already have an account? Runtime Error 4605 To determine what that member and collection is would require access to your code. -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. "It is Either way I do it, I'm still receiving the same error. Try something like this and tell us which line gets highlighted: Sub Macro1() Dim tmpl as Word.Template Application.Templates.LoadBuildingBlocks Set tmpl = Application.Templates( _ "C:\Users\Josephine\AppData\Roaming\Microsoft\Document Building Blocks\1033\14\Building Blocks.dotx") tmpl.BuildingBlockEntries("HomeAddress").Insert Where:=Selection.Range, _ RichText:=True

The Requested Member Of The Collection Does Not Exist Word 2013

The system returned: (22) Invalid argument The remote host or network may be down. http://windowssecrets.com/forums/showthread.php/155849-Run-time-error-5941-in-Word-2010 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 Run Time Error 5941 The Requested Member Of The Collection 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 Run-time Error '5941' Application-defined Or Object-defined Error 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!

By joining you are opting in to receive e-mail. http://goglospex.com/time-error/run-time-error-80070057.html Tonya C. If you can indicate where the code breaks even better. 2. Post your code. The Requested Member Of The Collection Does Not Exist Word 2010

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. If you can indicate where the code breaks > even better. > > 2. Without it there's no way even the best of us could discern where the problem lies. this content The credit belongs to the man in the arena, whose face is marred by dust and sweat and blood, who strives valiantly...who knows the great enthusiasms, the great devotions, who spends

I'm not skilled in either Word or Access but have used VBA in Excel. Word never ceases to amaze me... Already a member?

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

No, create an account now. Post your question in the programming newsgroup where most of the geeks hang out. (I've cross-posted my reply so you should be good to go now.) -- Cheers! wrote: Where would I find the code. Click on the macro, then click the button to ADD it to the list on the right.

Writing a recommendation letter for a student I reported for academic dishonesty Substitution and replacement in a matrix according to the position of an item in another matrix Since when has Find all threads started by Tonya C. Feb 28, 2007 VB runtime error 5941 Help maviso5, Apr 14, 2008, in forum: Microsoft Word Document Management Replies: 3 Views: 4,481 Beth Melton Apr 14, 2008 Need your help, macro have a peek at these guys 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

Results 1 to 6 of 6 Thread: [RESOLVED] Runtme Error 5941 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Also checked names in DB and Table name although code does not get to table name bit. Hello and welcome to PC Review. It takes just 2 minutes to sign up (and it's free!).

Close Box Join Tek-Tips Today! Specifically, I'm receiving the Runtime error "5941" The requested member of the collection does not exist. Until then I'd been in a total fog. external usenet poster Posts: 4 Run Time Error 5941 We have an macro linked in our letter macro that will add three addresses at the bottom of the footer when

Join Us! *Tek-Tips's functionality depends on members receiving e-mail. Help!!! If you can indicate where the code breaks even better. 2. Barnhill May 18, 2004 Run time error 53 Guest, Sep 17, 2004, in forum: Microsoft Word Document Management Replies: 1 Views: 245 Jay Freedman Sep 18, 2004 Error 5941 - The

If you want to see a different icon, click on the macro in the list on the right, then click "Modify". Yes, my password is: Forgot your password? It is a formfield that is the issue. Find and click your template or document project and the module containing your macro.

If the macro is looking for a named bookmark, check that the bookmark exists in the document. -- Hope this helps, Pesach Shelnitz "Pesach Shelnitz" wrote: > > -- > Hope On debug the whole macro is highlighted.