I'm trying to run some code for the month that we're in, I was wondering if I'm on the right track with the below code:
Sub test6()
Select Case DatePart("m", Date).Value
Case 1
' ... Do something
Case 2
' ... Do something
Case 3
' ... Do something
Case 4
' ... Do something
Case 5
' ... Do something
Case 6
' ... Do something
Case 7
' ... Do something
Case 8
' ... Do something
Case 9
' ... Do something
Case 10
' ... Do something
Case 11
' ... Do something
Case 12
' ... Do something
End Select
End Sub
So as an example, if Datepart returns a 9 (September) than Case 9 line should run.