K
Kerri
Hi,
I have used the WestCiteLink Table of Authorities feature and am trying to
create a follow-up for the users to fix some formatting issues.
I am using both Word 2000 and 2003. I am selecting the text found in the
Table of Authorities (TOA), then displaying the Find box typing a quote (")
then pasting the copied text. It would look like this: "Adams Realty Corp.
v. Realty Center Investments, Inc., . I have to add the quote so it will
find the text in the field {TA \1 "Adams Realty Corp.v...... and not the
text in the document, which doesn't have a quote.
Unfortunately, I don't know how to set the selected text to appear in the
Find box when it changes based on what is selected. I hope this makes
sense. It keeps formatting the selected text (in the TOA) and not finding
the next occurrence. This is what I have so far.
Thank you for your help, Kerri
Sub CiteLinkUpdateItalics()
ActiveWindow.ActivePane.View.ShowAll = Not ActiveWindow.ActivePane.View.
_
ShowAll
ToaText = Selection.Range
'With ToaText
' Selection.Copy
'End With
ToaText = """ & toaText 'this should be what ever text is selected in
the document
Selection.Find.ClearFormatting
With Selection.Find
.Text = ToaText 'this should be what ever text is selected in the
document.
.Replacement.Text = ""
.Forward = True
End With
Selection.Find.Execute
'Applys Italics
Selection.Font.Italic = True
Selection.MoveRight Unit:=wdCharacter, Count:=1
'Inserts Soft Return
Selection.TypeText Text:=Chr(11)
End Sub
I have used the WestCiteLink Table of Authorities feature and am trying to
create a follow-up for the users to fix some formatting issues.
I am using both Word 2000 and 2003. I am selecting the text found in the
Table of Authorities (TOA), then displaying the Find box typing a quote (")
then pasting the copied text. It would look like this: "Adams Realty Corp.
v. Realty Center Investments, Inc., . I have to add the quote so it will
find the text in the field {TA \1 "Adams Realty Corp.v...... and not the
text in the document, which doesn't have a quote.
Unfortunately, I don't know how to set the selected text to appear in the
Find box when it changes based on what is selected. I hope this makes
sense. It keeps formatting the selected text (in the TOA) and not finding
the next occurrence. This is what I have so far.
Thank you for your help, Kerri
Sub CiteLinkUpdateItalics()
ActiveWindow.ActivePane.View.ShowAll = Not ActiveWindow.ActivePane.View.
_
ShowAll
ToaText = Selection.Range
'With ToaText
' Selection.Copy
'End With
ToaText = """ & toaText 'this should be what ever text is selected in
the document
Selection.Find.ClearFormatting
With Selection.Find
.Text = ToaText 'this should be what ever text is selected in the
document.
.Replacement.Text = ""
.Forward = True
End With
Selection.Find.Execute
'Applys Italics
Selection.Font.Italic = True
Selection.MoveRight Unit:=wdCharacter, Count:=1
'Inserts Soft Return
Selection.TypeText Text:=Chr(11)
End Sub