I have saved as a template (.dotm) and then saved document as a .docm but always get the same error. 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 Until then I'd been in a total fog. Please try the request again. have a peek at this web-site
By joining you are opting in to receive e-mail. The time now is 07:42 PM. I've checked and rechecked the file name and name of the dropdown. 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 =
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 All rights reserved. Browse other questions tagged vba ms-word word-vba or ask your own question.
I have a different issue now so I will mark this as resolved and put out a new post. Run Time Error 5941 Word 2013 However, the macro is the able to "get" the template / building block. Would love this to work as I can not have both controls and legacy form controls in same document - good on you microsoft! To start viewing messages, select the forum that you want to visit from the selection below.
share|improve this answer answered Jun 8 '15 at 10:09 ChipsLetten 2,3181319 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Runtime Error 4248 Word 2010 Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. Woodabyna wrote: I have followed Greg's instructions for check boxes on http://gregmaxey.mvps.org/Add_Toggle_Objects.htm but when I double click on the box it gives me the run time error. The time now is 05:42 PM.
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. http://windowssecrets.com/forums/showthread.php/155849-Run-time-error-5941-in-Word-2010 Woodabyna wrote: I have followed Greg's instructions for check boxes on http://gregmaxey.mvps.org/Add_Toggle_Objects.htm but when I double click on the box it gives me the run time error. Vba Error 4605 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 Run-time Error '5941' Application-defined Or Object-defined Error To get an AutoText entry, you MUST change the Gallery box from "Quick Parts" to "AutoText".
I've tried using FormFields, I've tried ContentControls but cannot get it to work. In Word 2007 or 2010, AutoText has become part of the larger Building Blocks feature. Would love this to work as I can not have both controls and legacy form controls in same document - good on you microsoft! 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. Run Time Error 4605 Word 2010
And start using Option Explicit. Click Here to join Tek-Tips and talk with other members! Are you using Option Explicit? Source Wednesday, July 07, 2010 7:31 AM Reply | Quote Answers 0 Sign in to vote I assume that when you get the error, one of the two macros named CheckIt or
Michael S. Runtime Error 4248 Word 2013 Home | Invite Peers | More Visual Basic Groups Your account is ready. I'm not skilled in either Word or Access but have used VBA in Excel.
Below is the code and I've highlighted in red the line where the error occurs. 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 I've checked the reference libraries and believe that I am using the correct ones. Run Time Error 4605 Visual Basic Close Box Join Tek-Tips Today!
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, _ Would love this to work as I can not have both controls and legacy form controls in same document - good on you microsoft! The system returned: (22) Invalid argument The remote host or network may be down. http://prcflow.com/time-error/runtime-error-4605-word-2013.html Thank you !
I've been trying to adapt Dian Chapman's code for autofilling an Access database record from a Word Autoform. 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 Toolbox.com is not affiliated with or endorsed by any company listed at this site. Michael S.
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!!!!! I tried to run it again repeatedly in the same document and also tried to run it in a new document. Are you using Option Explicit? I have saved as a template (.dotm) and then saved document as a .docm but always get the same error.
All times are GMT -5. Doug Robbins - Word MVP dkr[atsymbol]mvps[dot]org Wednesday, July 07, 2010 9:14 AM Reply | Quote 0 Sign in to vote I assume that when you get the error, one of the Try: Sub Insert_Footerh() Dim oRng As Word.Range Set oRng = ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range oRng.Collapse wdCollapseStart ActiveDocument.AttachedTemplate.BuildingBlockEntries("alphabet).Insert _ Where:=oRng, RichText:=True End Sub Formatting tags added by mark007 Hi, your macro does not work as I am trying to simply create a series of macros that assistants can use to insert a signature building block into a document.
Michael Meyers-Jouan replied Dec 8, 2013 You are using the Windows class, which represents the set of windows that Word has open. Movie about encountering blue alien Why was Vader surprised that Obi-Wan's body disappeared? Thanks 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 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.
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). 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 Is the #disabled form element property different from the html disabled attribute? How to restrict InterpolatingFunction to a smaller domain?