
Sub nascondi()
Rows("3:1048576").Hidden = True
End Sub
Sub Scopri()
Rows("3:1048576").Hidden = False
End Sub
Sub Scopri_Anno()
Dim Ur1 As Long, I As Long, Anno As Long
Ur1 = Range("A" & Rows.Count).End(xlUp).Row
Anno = Year(Date)
For I = 3 To 300 'Ur1
If Year(Cells(I, 1)) <> Anno Then
Cells(I, "A").EntireRow.Hidden = True
End If
Next I
End Sub
'questa riga per due anni
If Year(Cells(I, 1)) = Anno Or Year(Cells(I, 1)) = Anno + 1 Then
|
Option Explicit
Public Sub m()
MsgBox Year(Date)
End Sub |
