Sign in to follow this  
Followers 0
AnuReddy

word doc help

4 posts in this topic

hey guys,

i already have a word document present....

now i need to open that doc and search a string to see if it is present or not how do i do that??

Share this post


Link to post
Share on other sites



Obviously not, that's why the topic exists. That's still not a reason to ask the same question all over again.

check this out it works i guess

$oWordApp = _WordCreate ("")

$oDoc = _WordDocOpen ($oWordApp, "path to the existing document")

$value = _WordDocFindReplace ( $oDoc,"string you searching")

if it exists if returns 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0