to start:
1) cel3 is newer assigned, so (being Range type) it is permanently Nothing
2) unlike in mathemetics, in VBA you cannot do
to check if three values are all equal. VBA will test a=b and result of this part will be boolean (either TRUE or FALSE) then this TRUE/FALSE will be compared with C. So you have to test
instead (of course from maths we remember that a=b and b=c implies a=c)
may be 3) Have you tried to check what is assigned to cel2 after
?
As there is no test workbook I have not tested, but somehow I'm not sure what result will be returned here. Anyway - correct two above points first
Bookmarks