home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / xltools.zip / RANGEHLP.TXT < prev    next >
Text File  |  1990-10-18  |  1KB  |  28 lines

  1.                 RANGE
  2.  
  3. For Excel Macro Language programmers.  Finds the minimum rectangle which 
  4. surrounds all the cells containing values.  When your macro wishes to 
  5. insert a formula into an area of the spreadsheet, RANGE reduces 
  6. recalculation time by identifying the smallest area which must be filled.  
  7. For example, this is useful in designing cellular games like LIFE, in 
  8. which the location and size of each generation changes.  RANGE will 
  9. identify all active cells, or it can be used to find all cells having a 
  10. specified value in a complex population.
  11.  
  12. RANGE returns the rectangle it finds as text.  It also selects the 
  13. rectangle on the spreadsheet.  This means that after RANGE is called, the 
  14. selected area is ready to be manipulated.  RANGE returns FALSE if it fails 
  15. to find any cells containing values.
  16.  
  17. RANGE takes two arguments: the definition of the active cell, and whether 
  18. to do a positive or negative search.
  19.  
  20. A negative search finds all cells which do not have values.  The definition 
  21. of a blank cell need not be that it is empty.  For instance, it might be 
  22. desirable to flag cells containing 0 as empty.  The significance of the 
  23. first argument in this case is that it defines the contents of a null cell.
  24.  
  25. A positive search finds all cells which have a certain value.  The first 
  26. argument in this case specifies the contents of a full cell.
  27.  
  28. The code is fully documented and available for unrestricted use.