ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   checking value in column (https://www.excelbanter.com/excel-programming/285790-checking-value-column.html)

sals

checking value in column
 
I'm currently writing a program where there are the following columns
CCL# Description Tested? Successful? Notifiied(sent email
confirmation)? Testers (First Name) Testers (Last Name) Comments


I want to check if the tested and successful column
(right now, they have a drop down list to choose between yes and no)
I only know how to do that in one cell with this:

Sub Yes()
Sheets("Sheet1").Select
If Range("C5").Value = "Yes" Then
MsgBox "Yes."
End If
End Sub


I dont' know how to choose for a range say if c5 and c6 has yes
then...

Tom Ogilvy

checking value in column
 
Sub Yes()
Sheets("Sheet1").Select
If lcase(Range("C5").Value) = "yes" and _
lcase(Range("C6").Value) = "yes" Then
MsgBox "Yes."
End If
End Sub

--
Regards,
Tom Ogilvy


"sals" wrote in message
om...
I'm currently writing a program where there are the following columns
CCL# Description Tested? Successful? Notifiied(sent email
confirmation)? Testers (First Name) Testers (Last Name) Comments


I want to check if the tested and successful column
(right now, they have a drop down list to choose between yes and no)
I only know how to do that in one cell with this:

Sub Yes()
Sheets("Sheet1").Select
If Range("C5").Value = "Yes" Then
MsgBox "Yes."
End If
End Sub


I dont' know how to choose for a range say if c5 and c6 has yes
then...





All times are GMT +1. The time now is 09:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com