LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX search/replace text in a Word .doc document

Hallo i want

to find a text in a word document .doc  (office word 2003)

and replace it with a another text.

 

i take LabeView 8.5, ActiveX

 

have anyone an example that would be nice 

 

 

thanks for answer

0 Kudos
Message 1 of 3
(3,223 Views)

@Max_1234 wrote:

Hallo i want

to find a text in a word document .doc  (office word 2003)

and replace it with a another text.

 

i take LabeView 8.5, ActiveX

 

have anyone an example that would be nice 

 

 

thanks for answer


Welcome to the forum. Since this is your first post you're probably not aware of the fact that people will be a lot more willing to help if you show them what you have tried so far.

As for the current issue you can use the Find method of the Range object to find and replace text.

 

Ben64

Message 2 of 3
(3,201 Views)

Hi,

 

Enclosed is a nice example that I made.

This example seaches in a report

It finds all instances of the word LAMBDA (one each time) and replaces it with the letter 'l' and then it changes the font of the letter to symbol

So the effect is to change each 'LAMBDA' in the file to greek alphabet 'l' or the lambda symbol

 

The neat thing here is that the range automatically changes from the entire doc to the found string - which I found by trial and error...

 

Enclosed are both a vi in 2010 and a screenshot

 

Enjoy,

Nitzan

Download All
Message 3 of 3
(3,099 Views)