View Single Post
 
Old 09-04-2018, 04:23 AM
ganesang ganesang is offline Windows XP Office 2016
Competent Performer
 
Join Date: Jul 2018
Posts: 170
ganesang is on a distinguished road
Post Need VBA code for find and replace between two files

Hi Paul,

I need the VBA code to find and replace between the two word files.

File 1: have the content like as follows,

<desc>abcv</desc>
<desc>efgh</desc>
<desc>tdvg</desc>
<desc>aere</desc> etc....

File 2: have the tags like <desc></desc> in several places between the texts.

I want to copy the tag with texts from File 1 and replace in to the File 2 vise vara which means find first item in File 2 and replace first item from File 1. So 200 items to be find and copy from File 1 and replace the same 200 items in to the File 2.

Please let me know the code?

Note: The VBscript code is acceptable in Notepad++. So if you provide the VBS it will more helpful.

Thanks
ganesang
Reply With Quote