Hi I do need help here.
I have a spreedsheet where I need to highlight from row A to row F of an active cell. I research through all the forums and there is a need for "Private sub" but I already have a "private sub". Is it possible to have 2 sub within a code? My idea is to have a spreedsheet where it would firstly have a message box once it is open, secondly it would search for =Today()-7days and lastly, highlighting from row A to row F. I have done up till =TODAY()-7 however I could not find any solution for highlight from row A to row F.
As following is my code:
Code
Public Sub Workbook_Open()
MsgBox "Please remember to check the highlighted duedates.", vbInformation + vbOKOnly, "Gentle Reminder"
Columns("B:B").Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
Formula1:="=$A$1-7"
Selection.FormatConditions(1) _
.Interior.ColorIndex = 20
End Sub
Can anyone please help me? Thank You.