Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting multiple criteria HELP!!! :(


Here is a snippet of code. What I want to do is add in another criteri
and have been unable to figure out how to do it.


Dim Ct As Integer
Ct = 0

If ckHome2 = True Then
Range("d2").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
If ActiveCell.Value = "Home" Then
Ct = Ct + 1
txtHome2.Text = Ct
End If

I want to add in that if a value in Column("C") is "Admission" Then
the : txtHome2.Text = Ct

So the criteria is that ckHome2 = True, The value in Column("D") i
"Home" and the value in Column("C") is "Admission"
So it would have to loop through column C also to determine which one
have the value as "Admission".

I have been working on this for weeks to no avail. Can someone pleas
help me with this. Thanks

--
along
-----------------------------------------------------------------------
alonge's Profile: http://www.excelforum.com/member.php...fo&userid=2787
View this thread: http://www.excelforum.com/showthread.php?threadid=47581

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
Selecting rows with the same criteria Ruslan Excel Worksheet Functions 5 March 17th 10 12:49 AM
Selecting Rows that meet criteria NoodNutt Excel Worksheet Functions 1 June 22nd 08 10:29 PM
match multiple criteria ina range from multiple criteria multiplet RG Excel Worksheet Functions 8 September 28th 07 04:21 AM
VBA - Selecting Based on Criteria ajocius[_21_] Excel Programming 2 August 7th 05 08:22 AM
Selecting a criteria range over two sheets? Lord_Ilpalazo Excel Discussion (Misc queries) 1 July 29th 05 07:05 PM


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

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

About Us

"It's about Microsoft Excel"