View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tim Childs[_5_] Tim Childs[_5_] is offline
external usenet poster
 
Posts: 9
Default Error Control - null rnage

Hi

What test can be used to stop the following code

Range(.Cells(iFirstDataRow, iTestCol), .Cells(lFinalRow,
iTestCol)).SpecialCells(xlCellTypeFormulas, 7)
erroring when there are no cells identified by the Goto-Special command?

i.e. I sometimes get error 1004 - "no cells were found"

thanks

Tim