L
Leon
Hello Everyone,
I am just getting into creating a loop in VBA and i was wondering to
have the same macro run on every sheet is the For Each loop the right
tool to use? And if yes, how do i tell it to do that?
This is my current macro:
If Range("B13").Value = Date Then
Application.Run ("TabRed")
ElseIf Range("B13").Value < Date Then
Application.Run ("TabRed")
ElseIf Range("B13").Value < Date + 30 Then
Application.Run ("TabYellow")
Else
Application.Run ("TabWhite")
End If
I still want to add to the IF macro but i also want it to run on all
worksheets. Anyone have tips on how to make this possible?
Thanks for the help. : )
I am just getting into creating a loop in VBA and i was wondering to
have the same macro run on every sheet is the For Each loop the right
tool to use? And if yes, how do i tell it to do that?
This is my current macro:
If Range("B13").Value = Date Then
Application.Run ("TabRed")
ElseIf Range("B13").Value < Date Then
Application.Run ("TabRed")
ElseIf Range("B13").Value < Date + 30 Then
Application.Run ("TabYellow")
Else
Application.Run ("TabWhite")
End If
I still want to add to the IF macro but i also want it to run on all
worksheets. Anyone have tips on how to make this possible?
Thanks for the help. : )