View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Scott P Scott P is offline
external usenet poster
 
Posts: 26
Default Refer to Ranges using Cells notation

I believe that I have found the answer to my own question, so I am posting it
here. It appears Excel allows you to refer to ranges of cells using the
"cells" notation using syntax such as this:

Set rng = Range(Cells(1, 1), Cells(1, 100))



"Scott P" wrote:

Hi,

I am trying to pass through a worksheet using VBA with a nested For loop and
would like to refer to the cells that I pass through using the Cells(row,
col) notation. Is there a way to refer to a range of cells (e.g. A1:A100)
using the Cells(row, col) notation instead of having to use the Range
notation?

Thanks in advance.