Home > Time Error > Run Time Error 5941 The Requested Member Of The Collection Does Not Exist

Run Time Error 5941 The Requested Member Of The Collection Does Not Exist

Contents

And start using Option Explicit. Since when has Darth Vader had a sense of humor? By joining you are opting in to receive e-mail. The 2nd docx file with the data could not be loaded.So I opened the docx file with the data, whit a 2nd macro and it works.CODEDim path As String Application.ScreenUpdating = weblink

Output the sign Reduce execution time of linq/lamda inside a loop How can I strengthen a lawn/verge? You're now being signed in. Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. You can add this test to your code before you try to use the fCust bookmark: If Windows(SourceTemplateName).Document.Bookmarks.Exists("fCust") = False Then MsgBox "You are not using the correct source document. 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 Does Not Exist

Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. To name the macro InsertMyAddress, for example, change the line Sub Macro1() to Sub InsertMyAddress() To assign this to your Quick Access Toolbar (QAT), click on the arrow that Post your code. Note that the Documents.Open method has a parameter that specifies whether the document should be visible (assigned to a window).

The next step would be to narrow down whether the "missing member" of the collection refers to the template or to the Building Block entry. Either way I do it, I'm still receiving the same error. 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 Run Time Error 4605 Word 2010 I now have a little house icon with HomeAddress macro on the Quick Access bar which is exactly what I have wanted for ages.

Member Login Remember Me Forgot your password? Reply With Quote Quick Navigation Office Development Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank Visual Basic 6 It might be a clue that when I start with the blank document and create the macro, this then works with that open document. Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free.

So I am bringing up the blank, going into record Macro and assigning to button and recording then to Quick Parts, selecting the address, Insert, and then back to Home, before The Requested Member Of The Collection Does Not Exist Word 2013 Monday, July 11, 2011 12:14 PM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. Click in the code window and step through the macro using the F8 key to try to determine the line of code that throws the error. I'm not sure what else to try??

Run Time Error 4605 Word 2013

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 http://www.tek-tips.com/viewthread.cfm?qid=1682609 I've tried using FormFields, I've tried ContentControls but cannot get it to work. Run Time Error 5941 The Requested Member Of The Collection Does Not Exist If you can indicate where the code breaks > > even better. > > > > 2. Run-time Error '5941' Application-defined Or Object-defined Error To determine what that member and collection is would require access to your code.

vba ms-word word-vba share|improve this question edited Jun 8 '15 at 11:41 Deduplicator 28.8k63468 asked Jun 8 '15 at 9:03 Danny 136 add a comment| 1 Answer 1 active oldest votes http://goglospex.com/time-error/run-time-error-80070057.html 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' If you are not, it could be something as simple as a typo. Log in or Sign up PC Review Home Newsgroups > Microsoft Word > Microsoft Word Document Management > Run Time Error 5941 Discussion in 'Microsoft Word Document Management' started by Tonya Runtime Error 4248 This Command Is Not Available Because No Document Is Open

Stops at [FONT=Arial]vDeptCode = ActiveDocument.FormFields("bkDeptCode").Result[/FONT] Formatting tags added by mark007 . Am I inserting this in the correct place, ie after the quotation marks, leaving the rest exactly the same? Get rid of the Documents("Kit Label Framework.docx").Open statement. check over here Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New?

Yes I am using Word 2010 and Windows 7 64 bit. Runtime Error 4248 Word 2013 I accidentally added butter into flour/cocoa powder/baking soda without beating first Big numbers: Ultrafactorials Does a symbol like this or a similar thing already exsist and has its meaning or not? Register Privacy Policy Terms and Rules Help Popular Sections Tech Support Forums Articles Archives Connect With Us Twitter Log-in Register Contact Us Forum software by XenForo™ ©2010-2016 XenForo Ltd.

Are player's basic rules the same as the players handbook when it comes to combat?

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 Without it there's no way even the best of us could > > discern where the problem lies. Choose "More commands..." This should open the File/Options dialog box at the correct "tab".From the dropdown list at the top left choose "Macros". Run Time Error 5941 Word 2013 Help!!!

I've been trying to adapt Dian Chapman's code for autofilling an Access database record from a Word Autoform. Greg Maxey, Oct 6, 2009 #3 Pesach Shelnitz Guest -- Hope this helps, Pesach Shelnitz "Gordon Bentley-Mix" wrote: > Two suggestions: > > 1. All times are GMT -5. this content 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.

More up-to-date alternative for "avoiding something like the plague"? I am new to working with macros. Click on the macro, then click the button to ADD it to the list on the right. If you can indicate where the code breaks > even better. > > 2.

Generated Tue, 20 Dec 2016 15:21:46 GMT by s_wx1195 (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 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. Are you using Option Explicit?