
Sub prova()
Dim MaxRighe As Integer
Dim Indice As Integer
Dim giorno As String
giorno = Date
MsgBox (giorno)
MaxRighe = Sheets("Foglio1").Range("A" & Rows.Count).End(xlUp).Row + 1
Indice = Application.Match(giorno, Sheets("Foglio1").Range("A1:A20"), 0)
MsgBox (Indice)
End Sub
Sub prova2()
Dim MaxRighe As Integer
Dim Indice As Integer
MaxRighe = Sheets("Foglio1").Range("A" & Rows.Count).End(xlUp).Row + 1
Indice = Application.Match(4, Sheets("Foglio1").Range("D1:D20"), 0)
MsgBox (Indice)
End Sub |
