View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Passing Arguments in Excell

One way:

Dim rMyRange As Range
Set rMyRange = ActiveSheet.Range("A1:C" & I)

In article ,
ub wrote:

How do I write the code , when I want to pass the value of a cell in the
range object.
Example, I have stored a value of a cell in a variable 'I'.
Now I want my range to be from A1 to C(the variable 'I').