Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
Condition, column H has an interior color of red and has the text "Enter Text" written into it and where the cell next to it in column I is blank to run a message box stating "Column H has a value and Column I does not".
Would I either write a Select case for this condition or an IF statement to run a message box for it?
For example, if I have cell H27 where its interior cell color is red and has its text of "Enter Text" in it and its corresponding cell of column I is I27 is blank it will run the message box.
If in using a select case or an IF statement, how would I code this?
I tried experimenting with
But I need to add an additional criterial being that it has a value in this cell and runs the message box only when its corresponding cell of column I is blank.
Please let me know.
Thank you!
pinaceous
Condition, column H has an interior color of red and has the text "Enter Text" written into it and where the cell next to it in column I is blank to run a message box stating "Column H has a value and Column I does not".
Would I either write a Select case for this condition or an IF statement to run a message box for it?
For example, if I have cell H27 where its interior cell color is red and has its text of "Enter Text" in it and its corresponding cell of column I is I27 is blank it will run the message box.
If in using a select case or an IF statement, how would I code this?
I tried experimenting with
VBA Code:
Select Case Sheet1.Range("H:H").Interior.Color
But I need to add an additional criterial being that it has a value in this cell and runs the message box only when its corresponding cell of column I is blank.
Please let me know.
Thank you!
pinaceous