Michael Meyers-Jouan replied Dec 8, 2013 You are using the Windows class, which represents the set of windows that Word has open. Thank you so much for all your help and I am trying to be a fast learner... I've tried different variations on the code but keep receiving errors. Thanks. have a peek here
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 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. I'm just short of trying to uninstall and reinstall Office 2007 to see if that may fix the issues. Sub Macro1() ' ' Macro1 Macro ' ' Templates.LoadBuildingBlocks Application.Templates( _ "C:\Users\Josephine\AppData\Roaming\Microsoft\Document Building Blocks\1033\14\Building Blocks.dotx" _ ).BuildingBlockEntries("HomeAddress").Insert Where:=Selection.Range, _ RichText:=True End Sub Enjoy, Tony www.WordArticles.com Marked
If you are not, it could be something as simple as a typo. 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 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 I did make a successful macro for PrintPage which was fine and I use it all the time.
I'm baffled as to why some would work under one name and not the other, especially, when they worked fine under the original user. Bayes regression - how is it done in comparison to standard regression? 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 Runtime Error 4248 This Command Is Not Available Because No Document Is Open On debug the whole macro is highlighted.
Selection.Copy Windows("Count.docx").Activate Selection.PasteAndFormat (wdPasteDefault) Selection.EndKey unit:=wdStory ActiveWindow.ActivePane.SmallScroll down:=-50 Windows("document1.docx").Activate Selection.MoveDown For the above, both documents are open at the time of running. Run Time Error 4605 Word 2013 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. Are you using Option Explicit? 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
United States English English IBM® Site map IBM IBM Support Check here to start a new keyword search. Runtime Error 4248 Word 2010 Add one or more shapes 4. Go to Add-Ins and use 'Export to DOORS' icon to export the document to DOORS Problem conclusion Word Importer Fixed. i tested your code without error, so i can only assume that the active document does not contain a dropdown named dropdown1 try documents("templte1").activate or better With Documents("template1").FormFields("Dropdown1").DropDown.ListEntries i do my
I'm in design mode and I click on "Insert a dropdown list content control". I double checked and even changed the file name and dropdown name to make sure that I was using the correct names (see below). Run Time Error 5941 The Requested Member Of The Collection Does Not Exist 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 Run-time Error '5941' Application-defined Or Object-defined Error 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
I am trying to make a macro which will insert my address etc on a blank document. navigate here It stops on random files each time > it > is ran. > .InsertParagraphAfter > .InsertBreak Type:=wdSectionBreakNextPage > .Collapse direction:=wdCollapseEnd > End With > > This function works on the new Am I inserting this in the correct place, ie after the quotation marks, leaving the rest exactly the same? share|improve this answer answered Jun 8 '15 at 10:09 ChipsLetten 2,3381419 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Run Time Error 4605 Word 2010
What matters is whether the file is visible - that is, whether there is a window open for the file. Runtime Error 4248 Word 2013 I've tried using FormFields, I've tried ContentControls but cannot get it to work. Stay logged in Welcome to Office Forums!
Go to Add-Ins and use 'Export to DOORS' icon to export the document to DOORS Local fix Problem summary Run Time Error 5941 is displayed when we try to Export a Results 1 to 6 of 6 Thread: [RESOLVED] Runtme Error 5941 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded That's why I'm not giving you the exact menu names - I don't want to confuse you!)Cindy Meister, VSTO/Word MVP Marked as answer by Calvin_GaoModerator Monday, July 18, 2011 6:51 AM Run Time Error 4605 Visual Basic Add one or more shapes 4.
This does not work under the new user name but works under the prior user name. (The document name in quotes is changed to reflect document names and extensions showing/not showing.) Stops at [FONT=Arial]vDeptCode = ActiveDocument.FormFields("bkDeptCode").Result[/FONT] Formatting tags added by mark007 . That's why I'm not giving you the exact menu names - I don't want to confuse you!)Cindy Meister, VSTO/Word MVP Marked as answer by Calvin_GaoModerator Monday, July 18, 2011 6:51 AM this contact form All rights reserved.
I've checked the bookmarks by using Edit|Go To|Bookmark. Click on the macro, then click the button to ADD it to the list on the right. 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. BernRI replied Dec 9, 2013 Thanks for the help but it still gives me an error but now on the revised Documents("Kit Label Framework.docx").Open it gives me a run-time error 438
three-letter codes for countries Quantum Field Theory in position space instead of momentum space?