Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Michael Michael is offline
external usenet poster
 
Posts: 5
Default Count Number of ASK fields

Hi Folks - We use many ASK fields in our Merge docs. As part of converting
the ASK fields to database fields, we need to know the number of ASK fields
per document. So, we are looking for a report that would list the file name
and ASK fields similar to this:

Affidavit.doc
ASK assigndate "Enter Assignment Date (Ex. July 14, 2008)"
ASK recordeddate "Enter Deed Recorded Date (Ex. July 14, 2008)"
ASK principal "Enter Loan Amount (Ex. $173,550.55)"

I figure this will need programming, but maybe there are some
non-programming techniques to accomplish this task. Any ideas?

Thanks.

Michael


  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Count Number of ASK fields

The following code will produce such a report

Dim source as Document, target as Document
Dim af as Field
Set source = ActiveDocument
Set target = Documents.Add
target.Range.InsertAfter "The following ASK fields occur in " & source.Name
& vbCr
For each af in source.Fields
If af.Type = wdFieldAsk Then
target.Range.InsertAfter af.Code & vbCr
End If
Next

If you want to gather this information for a large number of documents, you
might be interested in the addins that you can get from fellow MVP Greg
Maxey's website at:

http://gregmaxey.mvps.org/Process_Batch_Folder.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Michael" wrote in message
...
Hi Folks - We use many ASK fields in our Merge docs. As part of converting
the ASK fields to database fields, we need to know the number of ASK
fields per document. So, we are looking for a report that would list the
file name and ASK fields similar to this:

Affidavit.doc
ASK assigndate "Enter Assignment Date (Ex. July 14, 2008)"
ASK recordeddate "Enter Deed Recorded Date (Ex. July 14, 2008)"
ASK principal "Enter Loan Amount (Ex. $173,550.55)"

I figure this will need programming, but maybe there are some
non-programming techniques to accomplish this task. Any ideas?

Thanks.

Michael




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to count number of rows~ drybones New Users 5 March 7th 13 09:17 AM
How do I count the number of characters, including spaces, in a li c20th Microsoft Word Help 10 August 19th 09 11:27 PM
Count number of rows in table PamKT Microsoft Word Help 6 August 30th 06 09:32 AM
How can I count number of uses of a specific word jow Microsoft Word Help 2 April 11th 06 10:15 PM
count and show number of words in a line Ambrq Microsoft Word Help 0 November 23rd 05 04:25 AM


All times are GMT +1. The time now is 09:32 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"