claudehenri
Technical User
Hi
my problem is that Temp is always empty,even though all the cells in RadiusRange have been filled with numbers or text i.e. "6". What is wrong with the code, I've been racking my brain to try figure it out but no luck. I just upgraded to Office 2003, and I am sure that the code below worked. Any help greatly appreciated.
Claude-Henri
Set RadiusRange = .Range(.Cells(3, 1), .Cells(3 + TotNoRad, 1))
With RadiusRange
For j = 0 To TotNoRad
Set Temp = .Find(.Cells(j + 1, 1), LookIn:=xlValues, LookAt:=xlWhole)
If Not Temp Is Nothing Then
Addr = Temp.Address
Do
Set Temp = .FindNext(Temp)
If Temp.Address <> Addr Then Temp.Value = ""
Loop While Not Temp Is Nothing And Temp.Address <> Addr
End If
Next j
my problem is that Temp is always empty,even though all the cells in RadiusRange have been filled with numbers or text i.e. "6". What is wrong with the code, I've been racking my brain to try figure it out but no luck. I just upgraded to Office 2003, and I am sure that the code below worked. Any help greatly appreciated.
Claude-Henri
Set RadiusRange = .Range(.Cells(3, 1), .Cells(3 + TotNoRad, 1))
With RadiusRange
For j = 0 To TotNoRad
Set Temp = .Find(.Cells(j + 1, 1), LookIn:=xlValues, LookAt:=xlWhole)
If Not Temp Is Nothing Then
Addr = Temp.Address
Do
Set Temp = .FindNext(Temp)
If Temp.Address <> Addr Then Temp.Value = ""
Loop While Not Temp Is Nothing And Temp.Address <> Addr
End If
Next j