View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cullen Morris Cullen Morris is offline
external usenet poster
 
Posts: 7
Default How to tell whether any cell within a Range has non-empty contents

I am writing a VSTO addin for Excel 2003 that reads data from a
database and populates a range of cells. I want to be able to detect
if there is any existing data within any of the cells in the range, so
that I can prompt the user whether to overwrite or insert rows/
columns. The amount of data returned could be different each time.

Is there a method that will tell me if any cell in a range is occupied
(including a formula), and which cell it is within the range?

Thanks for the help.