View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
ma1achai ma1achai is offline
external usenet poster
 
Posts: 5
Default Can I set a variable to be equal to the range of an entire col

To add to that, if you are only looking for cells that have a value, you can
try using the SpecialCells property.

Try this:
Set idrange = Columns("D").SpecialCells(xlCellTypeConstants, xlNumbers)

Or if you are looking for cells with other characteristics there are other
constants to use with SpecialCells... take a look in the help on it.

-jputman