Support Portal

for ProcessRobot and WinAutomation

Start a new topic

Find and replace in Word Document using VBScript

ADMIN

The attached process* will find a certain word in the provided Word document, replace it with a different word and save the file with a different name in the same directory as the original file.



*Exported from WinAutomation version 8.0.3.5190 Basic edition

waj

1 person likes this idea
1 Comment

I am wondering if this could be tweaked to fit my needs:

I have a word document which contains a table; the table pattern is not very consistent, I mean, on the left column, I have a cell which has five line items  (could call it a "merged cell") and on the next right column, in the same row with the "merged cell", I have  five rows.

One item in the "merged cell" is called "Product".

I want the WAJ to find the word "Product" in the table and write a given value in the corresponding row on the right.

I "Word", it would be like: Ctrl+F Product; Tab; Send Keys "a given value", actually this is how I have my WAJ now but most of the time the "given value" gets in the wrong position.

I am wondering if this could be handled through a VB Script.

Thanks




Login or Signup to post a comment