M
m92410
Hi
I have code in a VB6 application like this:
Dim oFind As Find
Set oFind = .Tables(1).Rows(1)Range.Find
With oFind
.Forward = True
.Text = "CR"
.Replacement.Text = "^p"
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
The code inside the With statement would not execute until
I changed the data type for oFind to type Object, like
this:
Dim oFind As Object
My question: Why wouldn't this work with oFind declared as
type "Find"?
Thanks
I have code in a VB6 application like this:
Dim oFind As Find
Set oFind = .Tables(1).Rows(1)Range.Find
With oFind
.Forward = True
.Text = "CR"
.Replacement.Text = "^p"
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
The code inside the With statement would not execute until
I changed the data type for oFind to type Object, like
this:
Dim oFind As Object
My question: Why wouldn't this work with oFind declared as
type "Find"?
Thanks