473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Search for plain text variables in word document

Hi All,

Is it possible to read through a word document, find a number of
strings (using wildcards) and prompt the user to enter values for them.
I have a document management database that builds word documents based
on a template and then searches and replaces values saved in a table.
This works fine. However, I would like to then search through the
document after this procedure and see if there are any variables that
have not been replaced. Al plain text variables are in the following
format: <VariableName> I use the following code to perform the replace
process:

Set rs = db.OpenRecordset("SELECT * FROM tbl_Doc WHERE zDocID = '" &
Me.cboTask & "' or zMakeAvailable = true;")
Do Until rs.EOF
wdRange.Find.Execute FindText:=rs("zFind"),
ReplaceWith:=rs("zReplace"), Replace:=wdReplaceAll
rs.MoveNext
Loop
rs.Close
db.Close
Set db = Nothing
Set rs = Nothing

Any thoughts on this would be appreciated. Anton

Jan 9 '06 #1
0 1807

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
The table already has a fulltext index and from there I can use the MySQL fulltext search query to get results as well as the relevancy score. The problem I have is that MySQL has a default...
0
by: Sjef Janssen | last post by:
--Boundary_(ID_ZCk7KzQUYMD5RrtDZLO5Cw) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Hi there, I am trying to understand the logic of full text search in mysql....
3
by: erwinschrijver | last post by:
Is it possible to search inside a PDF-flie, using PHP? Same question for MS Word documents? Searched for it, but I cannot find anything about it, there are also no PEAR-packages available......
0
by: Anton | last post by:
Hi All, Is it possible to read through a word document, find a number of strings (using wildcards) and prompt the user to enter values for them. I have a document management database that builds...
5
by: Carstonio | last post by:
I use ASP to display links to Word documents on an intranet. Is there a way in ASP to do text searches on the documents' contents? I want the results to have the link to the Word document plus two...
17
by: jvieira | last post by:
Hi All I got a MS Word Document and I´d like to do Search and Replace on it with Javascript. Is there any function javascript that do this, to send me?
1
by: amiparna | last post by:
There is two frame in my form.In d first frame there is a text box,and i give some word in the text box.I want to search the word from a file from the location(http://45.12.09.31...........) and if...
5
by: silmana | last post by:
Hi i have this script that i want to use as php or html but i cant find the problem, could anyone solve the problem, i dont know why i cannot use it in php or html file // OBS! Några saker måste...
6
by: Flyzone | last post by:
Hello, i'm trying to paste copied text from word into an input box. This text is saved into a oracle db and then used as text in another javascript. The problem is that using the saved text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.