ItalianPlatinum
Well-known Member
- Joined
- Mar 23, 2017
- Messages
- 793
- Office Version
- 365
- 2019
- Platform
- Windows
Hello - I have a line of code that will check if the row counts of two sheets is less than or equal to a number. But i need to modify the 2nd part to not check the row count but to check if any value = No in column M, data starts on row 3.
So SP1 needs to be amended per the above
VBA Code:
'check if any current and prior day records exist and stop VBA if condition is met
If WsSP.Range("A" & rows.count).End(xlUp).row <= 3 And WsSP1.Range("A" & rows.count).End(xlUp).row <= 3 Then
'other code like format, formulas etc....
MsgBox ("No Current Day or Prior Day Dates")
Else
'other code like format, formulas etc....
End If
End Sub
So SP1 needs to be amended per the above