View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Chris B Chris B is offline
external usenet poster
 
Posts: 11
Default Inconsistency in how Range object is accepted?

Why is it that this statement is acceptable:

With WorksheetsToFormat(N).Range("A2:G65536")

But this one isn't?

With WorksheetsToFormat(N).Range(Cells(2,1),Cells(65536 ,7))

When I try to use the second one, I get an error that the Range object failed.

WorksheetsToFormat is declared as:
Dim WorksheetsToFormat(1 to 8) as Worksheet