Thread
:
vba using the OR operator
View Single Post
#
8
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
vba using the OR operator
sub ifcells()
If cells(iRow, 1) ="11/13/2005" Or cells(irow.1)="11/23/2005") Then msgbox
"ok"
end sub
--
Don Guillett
SalesAid Software
"Mona" wrote in message
...
Here is my code that does not work:
I can get the code to work on a single date but not with multiple dates
using "or". I have about 20 dates that I want to check and I could get by
with just repeating the code 20 times but I wanted to do it using a single
statement.
Thank you!!
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett