Error 4198 Activedocument
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Sat, 08 Oct 2016 13:29:18 GMT by s_ac4 (squid/3.5.20)
Word Macro when ActiveDocument.SaveAs rated by 0 users This post has 4 Replies | 1 Follower leena cardiff, Wales Since 9/25/2002 Posts 2 Reputation 40 Reply leena beeharry (leena) Posted: 9/25/2002 9:54 AM rated by 0 users Help,I keep getting the 4198 runtime error when attempting to run the following code. I've no idea why. :(I would be grateful for any help;thanks in advanceLeena/*********** CODE ***********************/Private Sub Document_Open()Dim prop As StringOpen "C:\Speed2001Installation.Properties" For Input As #1While Not EOF(1)Line Input #1, propIf Left(prop, 24) = "INSTALLATION_LOC_REPORTS" Thenlocation = Mid(prop, 28)End IfWendClose #1'select the http://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-msoffice_custom/word-filesaveas-simple-macro-run-time-error-4198/3c40564d-88fe-421d-9210-f8d7c7f5f6aa entire document so that bookmarks can be found and table of contents generated laterSelection.WholeStorySelection.Fields.UpdateSelection.HomeKey Unit:=wdStory'InsertSpreadsheets'Move to the top of the doc before saving..Selection.HomeKey Unit:=wdStorysaveAsLocation = location + "\data\rapid\reports" & "\mnds"'Save the document to the users default word folder..ActiveDocument.SaveAs fileName:=saveAsLocation, _FileFormat:=wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:=True, _WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:=FalseEnd Sub/************** END OF CODE *******************/ | Post Points: 35 rjhare England Since 6/13/2001 Posts 2,436 Reputation 35,017 http://vbcity.com/forums/t/11162.aspx Reply rjhare (rjhare) replied on 10/3/2002 12:25 AM rated by 0 users leenaError 4198 is usually associated with the VBa hyperlinks object - do you have any in your document? Also what line does it stop at when you step through on the debugger?For more help, follow this link:Error 4198 Sorry it took so long to get a reply from us - I have only just seen the post :oAny more help or advice, come back and I will answer as quick as I can :thumb: Criticism comes easier than CraftmanshipWhilst I try and answer every thread there is, I find most of my answers to your posts here:[Posting Guidelines] | [FAQ's] | [The Chosen One] | [Knowledge Search] | [Richie's Wisdom Forum] | Post Points: 5 leena cardiff, Wales Since 9/25/2002 Posts 2 Reputation 40 Reply leena beeharry (leena) replied on 10/3/2002 12:40 AM rated by 0 users Hi,thanks 4 the assistance,:Din reply to your questions, I have hyper links in my document but don't do anything with them or mention them in the macros.the line the code actually falls over on in the 'ActiveDocument.SaveAs.....' line. It won't go any further.Any help would be
VBA Code & Other Help Word Help Solved: Part 1, Close, Do Not Save Active Document With Userform If this is your first visit, be sure to check out http://www.vbaexpress.com/forum/showthread.php?43620-Solved-Part-1-Close-Do-Not-Save-Active-Document-With-Userform the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Page 1 of 2 1 2 Last Jump to page: Results 1 to 20 of 25 Thread: Solved: Part 1, Close, error 4198 Do Not Save Active Document With Userform Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 09-12-2012,09:58 AM #1 ac503683 View Profile View Forum Posts View Blog Entries View Articles VBAX Regular Joined Sep 2012 Posts 17 Solved: Part 1, Close, Do Not Save Active Document With Userform time error 4198 Greetings all, Big fan of VBA Express Intro: Gov't worker in water quality trying to create a semi-automated process for review requests using a Word form with data captured in Access (for my database) but distributed to Excel (for those who ack!Access). The form will be filled out by various districts personnel in the agency located throughout the state and sent back via email. I'm not a VBA expert or programmer by profession. Rank amateur, green-as-grass. The form has potential for elegance (TY VBA!), but in my hands, I will be delighted to get the thing into production. I've been "borrowing" code from several sites including Greg Maxey's but there are a few problems I can't seen to comprehend the issue to find a solution. So here I am. I have several questions all related to this project, but will start with this one. OP is Windows XP with MSOffice 2007. The Word document is a macro-enabled template. The template has several form controls. The last one is a text form field that when the user move