Microsoft Word Runtime Error 4198
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 16:21:25 GMT by s_wx1196 (squid/3.5.20)
soon) Ruby (coming soon) Getting Started Code Samples Resources Patterns and Practices App Registration Tool Events Podcasts Training API Sandbox Videos Documentation Office Add-ins Office
Microsoft Visual Basic Runtime Error 4198
Add-in Availability Office Add-ins Changelog Microsoft Graph API Office 365 Connectors Office 365 REST APIs SharePoint Add-ins Office UI Fabric Submit to the Office Store All Documentation https://www.yammer.com/ http://feeds.feedburner.com/office/fmNx Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: Word 2013 VBA Runtime Error 4198 Microsoft Office for Developers http://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-msoffice_custom/run-time-error-4198-in-filesave-in-global-template/d2878b38-7362-4440-b8ec-a6b7d4ba7632 > Word for Developers Question 0 Sign in to vote I havea macro thataddsrows in a table(over 500rows)aftera bit ofinsertionsreturnsthe errorruntime error4198. my codeis as follows: .... For i = 1 To Wx Selection.PasteAppendTable Next i.... Thanks Marzio Monday, December 29, 2014 6:13 PM Reply | Quote All replies 0 Sign in to vote Hi Marzio, Thanks for posting https://social.msdn.microsoft.com/Forums/office/en-US/84628eed-a242-42db-8dd9-19c40c10969f/word-2013-vba-runtime-error-4198?forum=worddev in MSDN forum. Based on the description, you were pasting cells and append it to a exits table. The you got en 4198 error, this error is runtime error, and it describes like "Application-defined or object-defined error". The code works well for me, it seems that this error is relative to the document enviroment.Would you mind providing a small demo to reproduce this issue? Regards & Fei We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey. Tuesday, December 30, 2014 7:10 AM Reply | Quote Moderator 0 Sign in to vote Hi, I have a document with the following table: I mustadd at least1000 linesvia VBA,I try todo it withthe following code: 'Sub AutoOpen() Sub Macro1() ' ' AutoOpen Macro ' Macro created 03/05/2013 by gary and roger ' Dim UsPath$ Dim Wx As Integer UsPath$ = Environ("userprofile") Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/8022533/excel-mail-merge-run-time-error-4198 of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: error 4198 Sign up Excel Mail Merge run time error 4198 up vote 4 down vote favorite 1 There was a previous question on stackoverflow: "Is it possible to start MAIL MERGE from excel macro (by clicking a button on sheet) I have excel sheet with data and want to export it to new word doc." This was answered Sep 29 '09 at 12:39 runtime error 4198 by dendarii 772. We had this need too because we wanted to simplify life for volunteers with limited computer skills. Unfortunately dendarii's code, modified with a suitable path, exits with run time error 4198 at the .OpenDataSource statement. Cindy Meister writing on Microsoft Office for Developer's Form> ..>Word 2010 VBA suggested 4198 errors could be due to synchronicity problems. I gave it go with no success. Andrew Poulson writing on Mr Excel encourages a contributor Snecz to compare his VBA mail merge .OpenDataSource statement against a Word macro recording. What do contributors think? My .OpenDataSource line seems standard. My Excel datasource file has a line of headers followed by two lines of data elements. We have Office 2010. I would be very grateful for any suggestions as to how to fix 4198 and if anyone knows of general diagnostic procedures. We are two people working for a charitable organisation. Any help welcome! Sub RunMerge() Dim wd As Object Dim wdocSource As Object Dim strWorkbookName As String On Error Resume Next Set wd = GetObject(, "Word.Appli