View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Difference Between Range("SelectedRange").Value and ActiveCell.Val

Excel/VBA is pretty nice:

Instead of this:
Range("A" & CStr(i)).Value
you could use:
Range("A" & i).Value
or
cells(i,"A").Value

(Yeah, I know you didn't ask.)


James Barrass wrote:

Tried Range("A" & CStr(i)).Value to dynamically change the range, only worked
when i was a constant


--

Dave Peterson