
Sub dat()
Dim CL As Object
Dim X
Application.ScreenUpdating = False
X1 = Date
X = X1
For Each CL In Range("h2:q1000")
If CL = X Then
CL.Offset(0, 0).Select
Selection.Cells.Interior.ColorIndex = 7
CL.Offset(0, 0).Select
End
End If
Next
Application.CutCopyMode = False
End Sub |
Sub dat()
Dim CL As Object
Dim X
Application.ScreenUpdating = False
X = Cells(1, 1) 'Date <=======da modificare
Set Rng = Range("b1:e10") '<=======da modificare
For Each CL In Rng 'Range("h2:q1000")
If CL = X Then
CL.Offset(0, 0).Select
Selection.Cells.Interior.ColorIndex = 7
End If
Next
Application.ScreenUpdating = True
End Sub
|
Sub dat()
Dim CL As Object
Dim X
Application.ScreenUpdating = False
X = Cells(1, 1) 'Date <=======da modificare
Set Rng = Range("b1:e10") '<=======da modificare
For Each CL In Rng 'Range("h2:q1000")
If CL = X Then
CL.Offset(0, 0).Select
Selection.Cells.Interior.ColorIndex = 7
End If
Next
Application.ScreenUpdating = True
End Sub
|
