Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
stlhomeinspector stlhomeinspector is offline
external usenet poster
 
Posts: 2
Default Word Auto Summary Option

I do home inspections and use Word for my reports. I would like to create a
automatic summary page of all defects I list in my report instead of having
to copy and paste them one by one. Is it possible to have word search for a
specific "key word" then capture that canned statement and put it in a
seperate summary document automatically?

For example...

Defect -- The house needs ect ect

I want word to look for all canned statements that starts with the word
"Defect".
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Word Auto Summary Option

That would be simple enough. Does the term 'Defect' begin a paragraph? Is
the defect contained in a single paragraph. Then the following macro will
list those paragraphs in a new document.
http://www.gmayor.com/installing_macro.htm

Sub ListDefects()
Dim oDoc As Document
Dim oList As Document
Dim oRng As Range
Set oDoc = ActiveDocument
Set oList = Documents.Add
oList.Range.Text = "List of Defects" & vbCr
Dim oPara As Paragraph
For Each oPara In oDoc.Range.Paragraphs
If InStr(1, oPara.Range, _
"Defect") = 1 Then
Set oRng = oPara.Range
oRng.Start = oRng.Words(2).Start
oList.Range.InsertAfter oRng.Text
End If
Next oPara
End Sub

If not how are the defects listed and what ends the description of the
defect.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"stlhomeinspector" wrote in
message ...
I do home inspections and use Word for my reports. I would like to create
a
automatic summary page of all defects I list in my report instead of
having
to copy and paste them one by one. Is it possible to have word search for
a
specific "key word" then capture that canned statement and put it in a
seperate summary document automatically?

For example...

Defect -- The house needs ect ect

I want word to look for all canned statements that starts with the word
"Defect".



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Word Auto Summary Option

That would be simple enough. Does the term 'Defect' begin a paragraph? Is
the defect contained in a single paragraph. Then the following macro will
list those paragraphs in a new document.
http://www.gmayor.com/installing_macro.htm

Sub ListDefects()
Dim oDoc As Document
Dim oList As Document
Dim oRng As Range
Set oDoc = ActiveDocument
Set oList = Documents.Add
oList.Range.Text = "List of Defects" & vbCr
Dim oPara As Paragraph
For Each oPara In oDoc.Range.Paragraphs
If InStr(1, oPara.Range, _
"Defect") = 1 Then
Set oRng = oPara.Range
oRng.Start = oRng.Words(2).Start
oList.Range.InsertAfter oRng.Text
End If
Next oPara
End Sub

If not how are the defects listed and what ends the description of the
defect.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"stlhomeinspector" wrote in
message ...
I do home inspections and use Word for my reports. I would like to create
a
automatic summary page of all defects I list in my report instead of
having
to copy and paste them one by one. Is it possible to have word search for
a
specific "key word" then capture that canned statement and put it in a
seperate summary document automatically?

For example...

Defect -- The house needs ect ect

I want word to look for all canned statements that starts with the word
"Defect".



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 do i set up auto summary in word office 2007? april2774 Microsoft Word Help 1 September 10th 08 05:08 PM
how to use auto summary feature nobuhle sibusiso Tables 2 December 4th 07 12:23 PM
auto summary in Word 2007 Henryz Microsoft Word Help 1 September 6th 07 12:33 PM
Auto Fill Option in Word Vickie Microsoft Word Help 1 November 27th 06 08:39 PM
Auto Summary Judy-Auto Summary Microsoft Word Help 3 December 14th 05 12:24 AM


All times are GMT +1. The time now is 06:55 AM.

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"