La fonction VBA Month renvoie un entier correspondant au mois de la date spécifiée.
Month(date)
Utilisation de la fonction Month pour obtenir les informations pertinentes à partir de la date :
Sub MonthExample1()
myDate = #10/30/2020#
MsgBox Month(myDate) 'Retours: 10
End Sub
Cette fonction accepte également les dates au format texte :
Sub MonthExample2()
myDate = "30/10/2020"
MsgBox Month(myDate) 'Retours: 10
End Sub