Hi guys,
Need help with the formula below.
What I need it to do is search through the workbook sheets (2-101) and check on each sheet if cell "D1" shows a result of TRUE or FALSE. If it is TRUE, then I need the formula to change the contents of cell "E6" on that sheet to read the current date (DD/MM/YYYY format). If it is FALSE, then I need the formula to go onto the next sheet and search for TRUE or FALSE and so on, all the way to sheet 101.
Thanks guys.
Here's the code I currently have:
Need help with the formula below.
What I need it to do is search through the workbook sheets (2-101) and check on each sheet if cell "D1" shows a result of TRUE or FALSE. If it is TRUE, then I need the formula to change the contents of cell "E6" on that sheet to read the current date (DD/MM/YYYY format). If it is FALSE, then I need the formula to go onto the next sheet and search for TRUE or FALSE and so on, all the way to sheet 101.
Thanks guys.
Here's the code I currently have:
VBA Code:
Public Sub Update_date_on_selected_RFIs()
Dim i As Long
For i = 2 To 101
If Sheets(i).Range("D1").Value = True Then
Range("E6").Value = Format(Now, "DD/MM/YYYY")
Else
End If
Next
DefaultMsgBox
End Sub
Sub DefaultMsgBox()
MsgBox "Process complete"
End Sub
Sub Date_Change()
Range("E6").Value = Date
End Sub