vba code

in vVBA, How do you serach particular cell contains value or not?

for example B2 cell having some value .how to search in cell value??

September 7th, 2015 1:08am

Hi,

Could be somthing like this:

Sub test()
If Range("B2") <>"" then
 'cell has a value (or non numeric)
else
 'cell has no value
end if
End sub

Just a starter

Maurice

Free Windows Admin Tool Kit Click here and download it now
September 7th, 2015 2:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics