Thsi is one way
=Myfunction(A1

10)
Sub MyFunction(Target as Range)
MyFunction = 0
for each cell in Target
MyFunction = MyFunction + cell.value
end sub
"Chris T-M" wrote:
> I really feel stupid on this one, but it's 4am here, so maybe you'll cut me
> some slack.
>
> Code:
> Dim CrntA As String
> CrntA = Range("A41").Select
> [some stuff]
> Range("CrntA").Select
>
> Issue:
> I want to return to A41 using the variable, so I can change the variable and
> loop the code, but try as I might, my Range.Select method isn't taking me
> anywhere.
>
> Error Code: (approximately)
> Run-time error '1004'
> Method 'Range' of object '_Global' failed
>
> Question:
> How do I properly set up a variable, and use it to return to the cell I used
> as the variable.
>
> Hope someones out there early on a Sunday. Thanks in advance.
>
>