J
johnfli
I have no idea what the deal is. I have used this macro for months and it
has always worked. But now its not.
Ok, here is how it goes.
The macro looks on one worksheet and gets a value and puts that value into
'wrdgpro'
Tha part works.
Then it goes to the other worksheet (summit) and looks for that value in
column 'a'
I have stepped through it zillions of times. And it is not finding the
matching values, 'C' always equals nothing.
ANd yes, I have even made sure that there are matching values.
Any ideas??
Sheets("summit").Select
With Worksheets(1).Range("a1:a3000")
Set C = .Find(wrdgpro, LookIn:=xlValues)
If Not C Is Nothing Then
firstAddress = C.Address
Do
C.EntireRow.Delete
Loop While Not C Is Nothing And C.Address <> firstAddress
End If
End With
has always worked. But now its not.
Ok, here is how it goes.
The macro looks on one worksheet and gets a value and puts that value into
'wrdgpro'
Tha part works.
Then it goes to the other worksheet (summit) and looks for that value in
column 'a'
I have stepped through it zillions of times. And it is not finding the
matching values, 'C' always equals nothing.
ANd yes, I have even made sure that there are matching values.
Any ideas??
Sheets("summit").Select
With Worksheets(1).Range("a1:a3000")
Set C = .Find(wrdgpro, LookIn:=xlValues)
If Not C Is Nothing Then
firstAddress = C.Address
Do
C.EntireRow.Delete
Loop While Not C Is Nothing And C.Address <> firstAddress
End If
End With