> Plus, you might insert tags in the wildcard search, and then apply styles in a regular replacement.
> Say,
[quoted text clipped - 24 lines]
> > "red.sys" & chr(64) & "t-online.de"
> > Word 2002, Windows 2000
Hi Major,
everything a computer can do, is possible for a computer.
You may add all the features of Autocad to Word,
if you got a billion dollars to spend. ;-)
If you are new to VB, and here it is VBA, then,
I'd say, hardly possible with justifiable effort.
But if you make it an obsession, yes.
How about this idea, as the task pane for formatting
offers a lot of what you are aiming for.
Switch the taskpane for formatting on:
Dim l As Long
Dim r As Range
Set r = ActiveDocument.Range
With ActiveDocument.Paragraphs
For l = 1 To .Count
.Item(l).Range.Select
Wait 2
r.End = Selection.Range.End
l = r.Paragraphs.Count
Next
End With
Public Sub Wait(ByVal aNum As Integer)
Dim aTim As Single
aTim = Timer
While Timer < aTim + aNum
DoEvents
Wend
End Sub
This would give you 2 seconds to apply a formatting.
If you're not that fast, increase the time to wait,
or, select the paragraph in question again.
A case, where resetting a loop aviable in a loop
might be helpful.
Not suitable for end users, of course.
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
major - 01 May 2005 00:07 GMT
Helmut,
Thank you very much. This does exactly what I wanted..thanks soo much. I
really like this forum, in a matter of few days I have learnt quite a lot
about VBA programming...which is impressive considering I am a scientist with
no previous serious programming experience :-)
Keep it up!
> Hi Major,
>
[quoted text clipped - 44 lines]
> Word XP, Win 98
> http://word.mvps.org/