Home > Time Error > Visual Basic Runtime Error 5941

Visual Basic Runtime Error 5941

Contents

Hope This Helps, PH.FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?FAQ181-2886: How can I maximize my chances of getting an answer? What are the computer-like objects in the Emperor's throne room? Guest 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. 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://gmailpush.com/time-error/visual-basic-error-5941.html

Browse other questions tagged vba ms-word word-vba or ask your own question. Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. 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. 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... http://answers.microsoft.com/en-us/office/forum/office_2010-word/run-time-error-5941-not-always-but-annoyingly/b95ec1db-6928-4d87-b799-52d4f1c01f08

Vba Error 4605

Member Login Remember Me Forgot your password? Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. To determine what that member and collection is would require access to your code.

A crossword so simple, it practically solves itself Why is 10W resistor getting hot with only 6.5W running through it? I've checked the bookmarks by using Edit|Go To|Bookmark. All rights reserved. Runtime Error 4248 Word 2013 Generated Tue, 01 Nov 2016 09:04:53 GMT by s_sg2 (squid/3.5.20) {{offlineMessage}} Store Store home Devices Microsoft Surface PCs & tablets Xbox Virtual reality Accessories Windows phone Software Office Windows Additional software

Toolbox.com is not affiliated with or endorsed by any company listed at this site. Runtime Error 4248 This Command Is Not Available Because No Document Is Open 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 Any help would be great. 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 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

ERROR The requested URL could not be retrieved The following error was encountered while trying to retrieve the URL: http://0.0.0.1/ Connection to 0.0.0.1 failed. Run-time Error '5941' Application-defined Or Object-defined Error I've checked the reference libraries and believe that I am using the correct ones. Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? If you are not, it could be something as simple as a typo.

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

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. news I have a different issue now so I will mark this as resolved and put out a new post. Vba Error 4605 Copy and paste the code in your reply. Run Time Error 4605 Word 2010 Meyers-Jouan Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...

You're now being signed in. this contact form Copyright © 2004 - VBA Express 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:\users\stacy\documents\my data sources\PEI.accdb" 'Open If you can indicate where the code breaks > > even better. > > > > 2. Runtime Error 4248 Word 2010

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 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 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). http://gmailpush.com/time-error/visual-basic-run-time-error-5941.html If you are not, it could be something as simple as a typo.

The time now is 10:58 PM. Run Time Error 4605 Visual Basic Sign Up Now! Please try the request again.

Already a member?

Join this group Popular White Paper On This Topic ERP: The Layman's Guide 5Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | 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 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 Run Time Error 5941 Word 2013 Sign up now!

please help Thanking you in advance Mifty Reply With Quote 09-09-2010,01:24 PM #2 fumei View Profile View Forum Posts View Blog Entries View Articles VBAX Wizard Joined May 2004 Posts 6,713 If you can indicate where the code breaks > even better. > > 2. In Word 2007 or 2010, AutoText has become part of the larger Building Blocks feature. Check This Out one of them?

I'm using the followiing object libraries: Word & Access 12.0, Forms 2.0. RE: Run-time error 5941 only in the Word templates Lumpazi (TechnicalUser) (OP) 9 May 12 15:28 Thank you for your reply.Solved!If someone has the same problem...http://support.microsoft.com/kb/813983It seems that the macro could