S
Sukhi
Hi
I have range object, which will contain something like --
[You must] read the later sections starting ['What you might get… '] to see
the important notes about these figures and the [assumptions] we’ve made.
I want all text within [] make bold and get rid of []s. If [] have special
meaning then I can change them with "//" in database. I have tried following
from another post (thanks to Helmut Weber) --
Sub test10()
Dim rDcm As Range
Set rDcm = ActiveDocument.Range
With rDcm.Find
.Text = "/*/"
.MatchWildcards = True
While .Execute
rDcm.Start = rDcm.Start + 1
rDcm.End = rDcm.End - 1
' for testing in single step mode only [F8]
rDcm.Select ' delete after testing
rDcm.Font.Bold = True
rDcm.Start = rDcm.End + 1
rDcm.End = ActiveDocument.Range.End
Wend
End With
End Sub
Above works with // but not with [], still I need to delete //s.
Could some one please help, need this sorting soon
I have range object, which will contain something like --
[You must] read the later sections starting ['What you might get… '] to see
the important notes about these figures and the [assumptions] we’ve made.
I want all text within [] make bold and get rid of []s. If [] have special
meaning then I can change them with "//" in database. I have tried following
from another post (thanks to Helmut Weber) --
Sub test10()
Dim rDcm As Range
Set rDcm = ActiveDocument.Range
With rDcm.Find
.Text = "/*/"
.MatchWildcards = True
While .Execute
rDcm.Start = rDcm.Start + 1
rDcm.End = rDcm.End - 1
' for testing in single step mode only [F8]
rDcm.Select ' delete after testing
rDcm.Font.Bold = True
rDcm.Start = rDcm.End + 1
rDcm.End = ActiveDocument.Range.End
Wend
End With
End Sub
Above works with // but not with [], still I need to delete //s.
Could some one please help, need this sorting soon