N
netloss
I am trying to save and then restore the settings for the find box.
I've tried the following code, but the .style setting is always left as
'sdPart' instead of whatever the style name was before the procedure is
run.
Thanks for any advice.
---------------------------------------
Sub MessWithFindBox2()
Dim fFind As Find
Set fFind = Selection.Find
'*********************
With Selection.Find
.ClearFormatting
.Text = ""
.Style = "sdPart"
.Execute
End With
'*********************
Selection.Find.Style = fFind.Style
End sub
I've tried the following code, but the .style setting is always left as
'sdPart' instead of whatever the style name was before the procedure is
run.
Thanks for any advice.
---------------------------------------
Sub MessWithFindBox2()
Dim fFind As Find
Set fFind = Selection.Find
'*********************
With Selection.Find
.ClearFormatting
.Text = ""
.Style = "sdPart"
.Execute
End With
'*********************
Selection.Find.Style = fFind.Style
End sub