Jump to content
Sign in to follow this  
AnuReddy

word doc help

Recommended Posts

AnuReddy

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
jvanegmond

The topic right below this one is this: http://www.autoitscript.com/forum/index.php?showtopic=110671

Share this post


Link to post
Share on other sites
jvanegmond

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

Share this post


Link to post
Share on other sites
AnuReddy

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  

×