View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dodo Dodo is offline
external usenet poster
 
Posts: 3
Default How to use row and column number instead of "E1" designation?

"keithb" wrote in
:

How can I modify the expression;

Set myRange = Workbooks(2).Worksheets("Sheet1"). _
Range("E1")

to use a column and row number reference such as Cells(1,5) instead
of the "E1" designation?

When I use;

Set myRange = Workbooks(2).Worksheets("Sheet1"). _
Range.Cells(1, 5)

I get a runtime error.

Thanks,

Keith




What if you leave out "Range."?


--

It is I, DeauDeau
(Free after monsieur Leclerc in 'Allo, 'allo)