Home > Time Error > Word 2010 Run Time Error 5941

Word 2010 Run Time Error 5941

Contents

Generated Wed, 02 Nov 2016 22:56:41 GMT by s_hp90 (squid/3.5.20) {{offlineMessage}} Store Store home Devices Microsoft Surface PCs & tablets Xbox Virtual reality Accessories Windows phone Software Office Windows Additional software On debug only the 'Templates.LoadBuildingBlocks' was not highlighted yellow, ie it only seemed to accept your addition...... If so, how can i solve it? Monday, July 11, 2011 9:44 AM Reply | Quote 0 Sign in to vote Hi "Boots" I was going to suggest the same thing as Tony and am as surprised as useful reference

Go to Add-Ins and use 'Export to DOORS' icon to export the document to DOORS Problem conclusion Word Importer Fixed. All rights reserved. I've tried different variations on the code but keep receiving errors. I now have a little house icon with HomeAddress macro on the Quick Access bar which is exactly what I have wanted for ages. http://answers.microsoft.com/en-us/office/forum/office_2010-word/run-time-error-5941-not-always-but-annoyingly/b95ec1db-6928-4d87-b799-52d4f1c01f08

Run Time Error 5941 Word Macro

It is a formfield that is the issue. It appears as Macro1. 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 I've downloaded the sample db and word form from mousetrax.com Autoforms with grateful thanks to Dian The original form and database work fine.

Are you using Option Explicit? Runtime Error 5941 The Requested Member of the Collection Does Not Exist BernRI asked Dec 8, 2013 | Replies (5) Every time I run this macro Sub KitLabels() ' ' KitLabels If the document you are specifying is not already open in a window, there will be no window with that "index." Try using the Documents class instead. Error 4605 Word 2013 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

I'm still getting the error in the same place. How would a society develop that has no sense of value or ownership? 5 people each have 5 equal cards Should the sole user of a *nix system have two accounts? 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 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 I've even manually added text the dropdown to make sure that it worked.

But when I run this from Command Button 1 to check if record exists NB comments have not been changed from orig code [FONT=Arial]Private Sub CommandButton1_Click()[/FONT] [FONT=Arial] 'declare variables for new The Requested Member Of The Collection Does Not Exist Word 2010 Are you running it again repeatedly in the same document or are you trying to run it in a new document that may not have the same attached template or building Temporary fix Comments This happens in versions of DOORS prior to DOORS 9.5.1.2. You're now being signed in.

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

What is an instant of time? 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 Word Macro Create a new Word document in Word 2010 2. Run Time Error 5941 Word 2013 Office UI Fabric Microsoft Graph Better with Office Word Excel Powerpoint Access Project OneDrive OneNote Outlook SharePoint Skype Yammer Android ASP .NET iOS JavaScript Node.js PHP (coming soon) Python (coming soon)

However, when I try to run the macro, I get the 5941 message each and every time. see here To open a window for a document that is not visible, use the Document.Windows.NewWindow method. Not the answer you're looking for? Go to Insert-?Shapes 3. The Requested Member Of The Collection Does Not Exist Word 2013

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 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. Maybe I'm missing something there?? http://pdctoday.com/time-error/word-vba-error-5941.php Yes I am using Word 2010 and Windows 7 64 bit.

To start viewing messages, select the forum that you want to visit from the selection below. Client-side fix. Copyright 2004 - VBA Express Register Help Remember Me? Portal Forum FAQ Calendar Forum Actions Mark Forums Read Quick Links View Site Leaders Knowledgebase Articles Blogs Resources Consulting Services

Thank you so much for all your help and I am trying to be a fast learner...

Are you using Option Explicit? Formfields have bookmarks. The macro can insert a footer. I did make a successful macro for PrintPage which was fine and I use it all the time.

It doesn't matter whether the file is open. Michael S. Please try the request again. http://pdctoday.com/time-error/word-vba-5941-error.php more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

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 Failed to find the 'fCust' bookmark in " & SourceTemplateName Exit Sub End If On a side note, you can probably use a Document object to simplify your code. 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 Results 1 to 5 of 5 Thread: Solved: Word Runtime error '5941' Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded

It might be a clue that when I start with the blank document and create the macro, this then works with that open document. BernRI replied Dec 9, 2013 Thanks again for your input. Sub Insert_Footer() WordBasic.ViewFooterOnly ActiveDocument.AttachedTemplate.BuildingBlockEntries("Alphabet").Insert _ Where:=Selection.Range, RichText:=True End Sub Formatting tags added by mark007 Thanks Reply With Quote 09-02-2012,05:57 AM #2 gmaxey View Profile View Forum Posts View Blog Entries Visit