IosifFlorin
New Member
- Joined
- Jul 1, 2015
- Messages
- 18
Hello everyone,
as the title mentions, i am trying to check for specific error words in column P -> R & T (starting with row 5 for all).
I was looking on the internet and i managed to bring together the below code.
- I am trying now to figure out how can i check all these columns and return text when for example only column Q and T have the error words ( so based on where the issue, to receive a message with the specific column/columns).
- if there is no error words, than at the end a message of "ok" suffices
Thanks for your help, let me know in case some additional information would be required.
Lastrow = ThisWorkbook.Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row With Sheets("Sheet1").Range("Q5:Q" & Lastrow)
Set check1 = .Find("#N/A", LookIn:=xlValues)
If check1 Is Nothing Then
MsgBox "Column Q ok"
Else
MsgBox ("Check Business Unit (Column Q)!!!")
End If
End With
as the title mentions, i am trying to check for specific error words in column P -> R & T (starting with row 5 for all).
I was looking on the internet and i managed to bring together the below code.
- I am trying now to figure out how can i check all these columns and return text when for example only column Q and T have the error words ( so based on where the issue, to receive a message with the specific column/columns).
- if there is no error words, than at the end a message of "ok" suffices
Thanks for your help, let me know in case some additional information would be required.
Lastrow = ThisWorkbook.Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row With Sheets("Sheet1").Range("Q5:Q" & Lastrow)
Set check1 = .Find("#N/A", LookIn:=xlValues)
If check1 Is Nothing Then
MsgBox "Column Q ok"
Else
MsgBox ("Check Business Unit (Column Q)!!!")
End If
End With