I've tried different variations on the code but keep receiving errors. 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. 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!!!!! To start viewing messages, select the forum that you want to visit from the selection below.
Default = "1" ' Display message, title, and default value. Can an opponent folding make you go from probable winner to probable loser? 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 And start using Option Explicit. my site
Hi Gerry, I now have to admit to being very dense I had thought that the bk in the code was identifying the bookmark Obviously not - it was part of I'm not skilled in either Word or Access but have used VBA in Excel. 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. 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
I've been trying to adapt Dian Chapman's code for autofilling an Access database record from a Word Autoform. The system returned: (22) Invalid argument The remote host or network may be down. 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. Vba Error 4605 I tried modifying the code to With ActiveDocument.ContentControls("Projects").DropdownListEntries using the ContentControls instead of FormFields but I still get the same runtime error (5941) with the above line.
I accepted a counter offer and regret it: can I go back and contact the previous company? Vba Runtime Error 5941 Close this window and log in. Thank you though, your post put me on the right track, the penny dropped almost straight away and I checked the bookmarks in the sample form. https://support.microsoft.com/en-us/kb/290934 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
Join Us! *Tek-Tips's functionality depends on members receiving e-mail. Runtime Error 4248 This Command Is Not Available Because No Document Is Open I've even manually added text the dropdown to make sure that it worked. Michael Meyers-Jouan replied Dec 8, 2013 You are using the Windows class, which represents the set of windows that Word has open. How to indicate you are going straight?
Are you using Option Explicit? navigate to these guys Note that the Documents.Open method has a parameter that specifies whether the document should be visible (assigned to a window). Vb Error 5941 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. Erreur 5941 Vba Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next dim all variables as required
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 Should I include him as author? I've checked the bookmarks by using Edit|Go To|Bookmark. Browse other questions tagged vba ms-word word-vba or ask your own question. Vba Laufzeitfehler 5941
Specifically, I'm receiving the Runtime error "5941" The requested member of the collection does not exist. To open a window for a document that is not visible, use the Document.Windows.NewWindow method. Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free. The SMB of the Future: Start Fast, Then Accelerate MoreWhitePapers Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...
Is there a way to make a metal sword resistant to lava? Runtime Error 4248 Word 2010 The time now is 04:04 PM. I'm not sure what else to try??
If you are not, it could be something as simple as a typo. The shrink and his patient (Part 2) How to book a flight if my passport doesn't state my gender? Please try the request again. Runtime Error 4248 Word 2013 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
Join UsClose Register Help Remember Me? Portal Forum FAQ Calendar Forum Actions Mark Forums Read Quick Links View Site Leaders Knowledgebase Articles Blogs Resources Consulting Services Training PayPal Donation Advanced What is a plural of "To-Do"? "To-Dos" or "To-Does"? Toolbox.com is not affiliated with or endorsed by any company listed at this site. Meyers-Jouan Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...
Compute the Mertens function My girlfriend has mentioned disowning her 14 y/o transgender daughter Rosa Parks is a [mascot?] for the civil rights movement?