Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Column Entries gtb Excel Worksheet Functions 9 November 3rd 08 06:10 AM
Checking for specific entries in a column Frador Excel Discussion (Misc queries) 3 May 17th 08 02:47 AM
Checking a column of values against another one BRob Charts and Charting in Excel 1 May 1st 08 09:18 AM
Checking entries against a column of data TonyR Excel Discussion (Misc queries) 1 May 31st 07 07:21 PM
checking celll in column withblue New Users to Excel 3 May 26th 05 08:39 PM


All times are GMT +1. The time now is 03:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"