RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Hi all, I have this which works when "X" is found in one column:
If Cells(ActiveCell.Row, "L").Value = "X" Then
But what about when X can be found in one of three columns?
If Range("R" & ActiveCell.Row & ":T" & ActiveCell.Row).Value = "X" Then
That returns an error.
Any ideas? I'd prefer to keep everything looking at ActiveCell.Row because I'm doing some nooby loops to get data. Cheers!
If Cells(ActiveCell.Row, "L").Value = "X" Then
But what about when X can be found in one of three columns?
If Range("R" & ActiveCell.Row & ":T" & ActiveCell.Row).Value = "X" Then
That returns an error.
Any ideas? I'd prefer to keep everything looking at ActiveCell.Row because I'm doing some nooby loops to get data. Cheers!