Home > Time Error > Word Run Time Error 5941

Word Run Time Error 5941

Contents

Could you assist me, please? "Greg Maxey" wrote: On Oct 6, 4:56 pm, Tonya C. I've even manually added text the dropdown to make sure that it worked. I'm running Word & Access 2007, and VBA 6.5. Join Us! *Tek-Tips's functionality depends on members receiving e-mail. http://pdctoday.com/time-error/word-2010-run-time-error-5941.php

The problem is a requested member of a collection does not exist. Michael S. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. That's why I explained how to add a window for a file that is open.

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

Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help Run Time Error 5941 Author Name Remember Me? Copyright 2004-2016 Microsoft Office Word Forum - WordBanter. Help!!!

  1. You may have to register before you can post: click the register link above to proceed.
  2. 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.
  3. 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.
  4. To get an AutoText entry, you MUST change the Gallery box from "Quick Parts" to "AutoText".

Start a new thread here 5380945 Related Discussions Automate Mail Merge help with Code in access 2000 Runtime Error 5941 "The requested member of the collection does not exist" Accessing a 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. Epicor Software ... Run Time Error 4605 Word 2010 I'm still getting the error in the same place.

Close this window and log in. Run Time Error 5941 Word 2013 Help!!! Tonya C. Below is the code and I've highlighted in red the line where the error occurs.

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). Runtime Error 4248 This Command Is Not Available Because No Document Is Open I'm using the followiing object libraries: Word & Access 12.0, Forms 2.0. The time now is 12:12 AM. - Contact Us - Microsoft Word Forum WordBanter forum home - FAQ - Links - Privacy Statement - Top Powered by vBulletin Version 3.6.4Copyright ©2000 All rights reserved.

Run Time Error 5941 Word 2013

If you are not, it could be something as simple as a typo. Would love this to work as I can not have both controls and legacy form controls in same document - good on you microsoft! Run-time Error '5941' Application-defined Or Object-defined Error 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. Error 4605 Word 2013 Failed to find the 'fCust' bookmark in " & sourceDocument.Name Exit Sub End If Set destDocument = Documents.Open (FileName:= _ "\\SERVERSHARE\HCD\HCD General\Templates\Heavy Cranes ICO Booking Form.docx", _ ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, _

Could that be the issue? this website Find and click your template or document project and the module containing your macro. 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 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 All replies 0 Sign in The Requested Member Of The Collection Does Not Exist Word 2013

Gordon Bentley-Mix[_2_] View Public Profile View message headers Find all posts by Gordon Bentley-Mix[_2_] Find all threads started by Gordon Bentley-Mix[_2_] #3 October 6th 09, 10:15 PM posted to What is the problem? 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! http://pdctoday.com/time-error/word-vba-error-5941.php I am new to working with macros.

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! Runtime Error 4248 Word 2010 I am new to working with macros. Code: Dim cnt As New ADODB.Connection Dim rst As New ADODB.Recordset Dim strDB As String Set cn = New ADODB.Connection 'Set string path to database' strDB = "C:\---" 'Open the database

Log In E-mail or User ID Password Keep me signed in Recover Password Create an Account Blogs Discussions CHOOSE A TOPIC Business Intelligence C Languages Cloud Computing Communications Technology CRM

Either way I do it, I'm still receiving the same error. Any help would be great. Formfields have bookmarks. Runtime Error 4248 Word 2013 I've tried different variations on the code but keep receiving errors.

It still gives me the same error. 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 asked 1 year ago viewed 1502 times active 1 year ago Blog Stack Overflow Podcast #93 - A Very Spolsky Halloween Special Related 0VBA Error 4198 “Runtime Error” With Paste0Can't get http://pdctoday.com/time-error/word-vba-5941-error.php 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.

All rights reserved. What is the problem? Help!!! Schengen Visa Expiry Date and Date of Return Journey How many significant figures?

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. BernRI replied Dec 9, 2013 Thanks again for your input. 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. You may have to register before you can post: click the register link above to proceed.

Until then I'd been in a total fog. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers the rest of the code goes here destDocument.Activate Post your code to the Code Review part of SE to get a more detailed review of your working code. You're now being signed in.

Quest Software View All Topics View All Members View All Companies Toolbox for IT Topics Visual Basic Groups Ask a New Question Visual Basic for Applications A forum where peers share 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 Home | Invite Peers | More Visual Basic Groups Your account is ready. The most likely reason that the Windows("Kit Label Framework.docx").Activate fails is that, although the file is already open, there's no window created for it.

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). Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? 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 I'll have a better look - thanks Reply With Quote 09-10-2010,03:30 AM #4 Mifty View Profile View Forum Posts View Blog Entries View Articles VBAX Newbie Joined Sep 2010 Posts 3

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. 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!!!!! The problem is a requested member of a collection does not exist. By joining you are opting in to receive e-mail.