View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
scott scott is offline
external usenet poster
 
Posts: 577
Default Calling Cell (or ROW() and COLUMN() in VBA)

I am new to VBA and need what I would think would be something easy, but I
have not been able to work out how to do it.

I have a macro that sums all values from the cell the macro is in to some
limit. At present I need to enter "=ITEMSUM(ROW(),COLUMN())" in the cell.
So I know where I am being called from. What I want to be able to enter in
the cell is "=ITEMSUM()" and inside ItemSum get the equivalent of ROW() and
COLUMN(). How can I do this?