
Public Sub cercasuccessivo()
Application.FindFormat.NumberFormat = "#,##0.00"
With Worksheets(1).Range("a1:a5000")
Set c = .Find(what:="", after:=Cells(1, 1), LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, searchformat:=True)
If Not c Is Nothing Then
firstAddress = c.Address
Do
f = c.Address
Call compilazionedelfoglioutenti
Set c = .FindNext(c)
Loop
End If
End With
End Sub |
Public Sub cercasuccessivo()
Application.FindFormat.NumberFormat = "0.00"
With Worksheets(1).Range("a1:a500")
Set c = Cells.Find(what:="", after:=Cells(1, 1), LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, searchformat:=True)
If Not c Is Nothing Then
firstAddress = c.Address
Do
Set c = Cells.Find(what:="", after:=c, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, searchformat:=True)
Loop While c.Address <> firstAddress
End If
End With
End Sub |
