Home > Time Error > Visual Basic Runtime Error 5941

Visual Basic Runtime Error 5941


A crossword so simple, it practically solves itself Why is 10W resistor getting hot with only 6.5W running through it? All product names are trademarks of their respective companies. Here's Why Members Love Tek-Tips Forums: Talk To Other Members Notification Of Responses To Questions Favorite Forums One Click Access Keyword Search Of All Posts, And More... Could that be the issue?

And start using Option Explicit. wrote: > Where would I find the code. That's why I explained how to add a window for a file that is open. If you are not, it could be something as simple as a typo. check here

Vba Error 4605

Stay logged in Welcome to PC Review! 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! wrote: > Where would I find the code. You'll be able to ask any tech support questions, or chat with the community and help others.

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 vba ms-word word-vba share|improve this question edited Jun 8 '15 at 11:41 Deduplicator 28.3k63366 asked Jun 8 '15 at 9:03 Danny 86 add a comment| 1 Answer 1 active oldest votes Woodabyna wrote: I have followed Greg's instructions for check boxes on but when I double click on the box it gives me the run time error. Runtime Error 4248 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'

Your name or email address: Do you already have an account? Word/phrase/idiom for person who is no longer deceived Can I "build" a TDS project without having it attempt to deploy? Now > > > when > > > we select the letter macro and pick the Personal Injury selection, we get > > > the > > > Run Time Error Now > > when > > we select the letter macro and pick the Personal Injury selection, we get > > the > > Run Time Error 5941 - The requested

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 I have a different issue now so I will mark this as resolved and put out a new post. You're now being signed in. I'm still pretty green at this so I would greatly appreciate any help...I'm sure it's something dumb that I'm just missing so thank you for your patience and assistance.

Runtime Error 4248 This Command Is Not Available Because No Document Is Open

Also checked names in DB and Table name although code does not get to table name bit. Seems that I would have to load both in order for the macro to "find" the Building Block/AutoText signature. Vba Error 4605 If you can indicate where the code breaks > even better. > > 2. Run Time Error 4605 Word 2010 The time now is 08:58 PM.

Without it there's no way even the best of us could > > discern where the problem lies. check over here 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. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. 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

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). I've downloaded the sample db and word form from Autoforms with grateful thanks to Dian The original form and database work fine. Click Here to join Tek-Tips and talk with other members! Tonya C.

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 4605 Visual Basic 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. I've tried different variations on the code but keep receiving errors.

Any suggestions are greatly appreciated.

Stops at [FONT=Arial]vDeptCode = ActiveDocument.FormFields("bkDeptCode").Result[/FONT] Formatting tags added by mark007 . The most likely reason for that error is that the template you're working with does not contain an AutoText entry named "Checked Box" or "Unchecked Box". (Unfortunately VBA's error handler never 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 Run Time Error 5941 Word 2013 The time now is 10:58 PM.

About Us PC Review is a computing review website with helpful tech support forums staffed by PC experts. Not the answer you're looking for? The problem is a requested member of a collection does not exist. weblink 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

You may have to register before you can post: click the register link above to proceed. image.eric, Apr 1, 2009, in forum: Microsoft Word Document Management Replies: 1 Views: 733 image.eric Apr 1, 2009 Loading... I have saved as a template (.dotm) and then saved document as a .docm but always get the same error. Gordon Bentley-Mix, Oct 6, 2009 #2 Advertisements Greg Maxey Guest On Oct 6, 4:56 pm, Tonya C. <> wrote: > We have an macro linked in our letter macro that will add

To get an AutoText entry, you MUST change the Gallery box from "Quick Parts" to "AutoText". Thank you ! Michael S. Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc.

I'm not skilled in either Word or Access but have used VBA in Excel. Are you using Option Explicit? So, does this mean I have to store the two separate templates - .dotm for the macros and .dotx for the building blocks in the Workgroup directory, and hope that no I'm still getting the error in the same place.