Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check if a range is null

Status
Not open for further replies.

juschuma

Programmer
Oct 23, 2002
18
0
0
US
I do a macro on a selected range, but it errors out if the range contains no data.

What's the appropriate error checking to do to allow me to put an error message in?

Thanks.
 
This should work...

If Activecell.Value = "" Then
Msgbox .....

Hope this helps. :) Please advise as to how it fits.

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top