473,395 Members | 1,846 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,395 software developers and data experts.

Locate plain text variables <*> in word doc

Hi All,

I would like to be able to check whether there are any remaining plain
text variables left in a word document after it has been built based on
a template. At this stage, I roll through a recordset and replace any
plain text variables using the following code:

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
Set db = Nothing
Set rs = Nothing

After completing this process I would like to search through the
activedocument and determine whether there are any user based variables
that were not included in the recordset. I would then add the variable
to the table and prompt the user to declare it and search through the
document again to perform the find/replace procedure. This would
therefore make the new values available the next time the document is
built. All variables in the document are in the following format
<VariableName>.

Thanks in advance for any thoughts on this problem. Anton

Jan 9 '06 #1
0 1434

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

Similar topics

3
by: Derek Fountain | last post by:
When is the use of <xsl:text>blah blah</xsl:text> necessary? I'm finding that, although it's used religously in the book I'm learning from, if I miss it out, the output is just the same.
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
3
by: Gerry Blais | last post by:
Newbie questions: Suppose abc.xls has sheets a, b, c. How can I find, in Python, the sheet names? Given a sheet name, how can I export the sheet as a csv file? Finally, how can I, in...
2
by: kuhni | last post by:
Hi All, I have a very general question regarding the interoperability of VB/VBA applications. I know that it is possible to create a form e.g. in Excel from which I launch Word and then show...
0
by: Anton | last post by:
Hi All, I would like to be able to check whether there are any remaining plain text variables left in a word document after it has been built based on a template. At this stage, I roll through a...
2
by: Paul Verbelen | last post by:
I have a file with topics. I like to copy them in another file but want to have some blank lines between the different topics. I use <xsl:text> element with as data some blank lines to perform...
56
by: Zytan | last post by:
Obviously you can't just use a simple for loop, since you may skip over elements. You could modify the loop counter each time an element is deleted. But, the loop ending condition must be...
14
by: Michael | last post by:
Since the include function is called from within a PHP script, why does the included file have to identify itself as a PHP again by enclosing its code in <?php... <?> One would assume that the...
3
by: hdogg | last post by:
What is the difference? Any.. besides that one has the word "php" in it?
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.