kiwikiki718
Board Regular
- Joined
- Apr 7, 2017
- Messages
- 80
- Office Version
- 365
- Platform
- Windows
hello have a range of cells that I would like to be updated if the if and statement is true.
ex. if cell P23 is True and if cell ranges M25 is not blank, I want the code to clear the data in the column O25 and update the text to Working. I Would like this code to run through all cells within the range M25:M75.
here is the code that I have where I am receiving an error
If Range("P23") = True And Range("M25:M75") <> "" Then
Range("O25:O75").ClearContents
Range("O25:O75").Value = "Working"
End If
End Sub
ex. if cell P23 is True and if cell ranges M25 is not blank, I want the code to clear the data in the column O25 and update the text to Working. I Would like this code to run through all cells within the range M25:M75.
here is the code that I have where I am receiving an error
If Range("P23") = True And Range("M25:M75") <> "" Then
Range("O25:O75").ClearContents
Range("O25:O75").Value = "Working"
End If
End Sub