I nead to make macro wich will make line in some rows of text.
for example...
"Welcome to an On-Line Biology Book Table of Contents.
NOTES: These pages have been recently (2/97-present) revised and updated. Please let me know your thoughts (mj.somemail@mail.mail)._________________________________
We have been very popular: over 400,000 visitors between Jan. 1, 1999 and September 17, 2001. Thank you!__________
"
i started with.
"
Welcome to an On-Line Biology Book Table of Contents.
NOTES: These pages have been recently (2/97-present) revised and updated. Please let me know your thoughts (mj.farabee@emcmail.maricopa.edu).___
We have been very popular: over 400,000 visitors between Jan. 1, 1999 and September 17, 2001. Thank you!___
"
My problem is that mail and date are variabile lenght and i nead that lines are as long as the row.
I have macro wich puts lines but I can't stop right on the end of the row.
Sub Macro4()
With ActiveDocument.Content.Find
.ClearFormatting
Do While .Execute(FindText:="___", Forward:=True, _
Format:=True) = True
With .Parent
For i = 1 To 100
.InsertBefore "_"
'!!!!! next line is bad and I can't make it work - Help me
If .EndOf(Unit:=wdParagraph, Extend:=wdExtend) Then
i = 100
End If
Next i
.Move Unit:=wdCharacter, Count:=1
End With
Loop
End With
End Sub
Sorry about my english but I hope that someone understand my problem. If not,than ask me more about this!
Thx
Gornet
for example...
"Welcome to an On-Line Biology Book Table of Contents.
NOTES: These pages have been recently (2/97-present) revised and updated. Please let me know your thoughts (mj.somemail@mail.mail)._________________________________
We have been very popular: over 400,000 visitors between Jan. 1, 1999 and September 17, 2001. Thank you!__________
"
i started with.
"
Welcome to an On-Line Biology Book Table of Contents.
NOTES: These pages have been recently (2/97-present) revised and updated. Please let me know your thoughts (mj.farabee@emcmail.maricopa.edu).___
We have been very popular: over 400,000 visitors between Jan. 1, 1999 and September 17, 2001. Thank you!___
"
My problem is that mail and date are variabile lenght and i nead that lines are as long as the row.
I have macro wich puts lines but I can't stop right on the end of the row.
Sub Macro4()
With ActiveDocument.Content.Find
.ClearFormatting
Do While .Execute(FindText:="___", Forward:=True, _
Format:=True) = True
With .Parent
For i = 1 To 100
.InsertBefore "_"
'!!!!! next line is bad and I can't make it work - Help me
If .EndOf(Unit:=wdParagraph, Extend:=wdExtend) Then
i = 100
End If
Next i
.Move Unit:=wdCharacter, Count:=1
End With
Loop
End With
End Sub
Sorry about my english but I hope that someone understand my problem. If not,than ask me more about this!
Thx
Gornet