Solved

how to loop through all the words in a document query a database to see if word or phrase exist in database

Posted on 2013-06-30
7
231 Views
Last Modified: 2014-01-11
How can I loop through all the words in a microsoFt WORD DOC AND CHECK IF THAT WORD OR A PHRASE EXISTS IN an excel database and then either replace the word with another from the database or insert a particular picture whose [ath is in the database
0
Comment
Question by:Dov_B
  • 4
  • 3
7 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 39288562
Hi,

As I queried in a remarkably similar question from 6 June 2013:

[ http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28149909.html#a39226799 ]

Would it be feasible/practical to copy'n'paste the text from the MS-Word document into a separate worksheet within the MS-Excel workbook so that the comparison can be performed in one application?

BFN,

fp.
0
 

Author Comment

by:Dov_B
ID: 39305882
not realy
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39305892
OK.

Can you clarify what you mean by "an excel database", please?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:Dov_B
ID: 39305893
a list of words in a column sorry for calling it a database
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39305906
:)

How is a replacement word to be determined?

I presume there are actually two columns; one of a list of words, & another adjacent with a list of paths.

Perhaps the provision of a sample file would be useful.
0
 

Author Comment

by:Dov_B
ID: 39305909
I presume there are actually two columns; one of a list of words, & another adjacent with a list of paths.
Yes
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39527413
Abandoned thread?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now