![]() |
|
#2
|
||||
|
||||
|
The message suggests a file path error.
Change Code:
StrTxt = ActiveDocument.path & "" & StrTxt Code:
StrTxt = ActiveDocument.path & "\" & StrTxt See also https://www.gmayor.com/MergeAndSplit.htm or E-Mail Merge Add-in
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| error 4198, macropod, mail merge macro |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Word 2019 macro not working error 4198 command failed
|
drrr | Word | 1 | 08-02-2021 12:22 AM |
Mail Merge - split merged documents and rename each split document based on text in header
|
FuriousD | Word VBA | 1 | 05-12-2019 04:06 AM |
| Word 2010 Run-Time error 4198 with Insert Picture with Caption and Fram Macro | jstills116 | Word VBA | 0 | 06-24-2016 07:46 AM |
| Help Please: New VBA user trying to use a macro to split Mail Merge documents. Two Run-Time Error | zipit189 | Word VBA | 7 | 03-18-2015 01:13 PM |
| Runtime error 5487 - Word cannot complete the save to to file permission error | franferns | Word | 0 | 11-25-2009 05:35 AM |