ePrizer
03-02-2006, 01:57 PM
I'm using Visio 2003 and have created a Userform with multiple text fields. I'd like the Submit button when clicked to Find a value throught all my diagrams and then replace that value with what was inputted by the User in the associated text field.
Any help would be much appreciated.
Here's what I tried and keep getting this error:
run time error 424'
object required
Selection.Find.ClearFormatting
With Selection.Find
.Text = "[Promotion Name]"
.Replacement.Text = TextBox1.Value
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Any help would be much appreciated.
Here's what I tried and keep getting this error:
run time error 424'
object required
Selection.Find.ClearFormatting
With Selection.Find
.Text = "[Promotion Name]"
.Replacement.Text = TextBox1.Value
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute