View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Drew[_6_] Drew[_6_] is offline
external usenet poster
 
Posts: 2
Default passing a variable as an argument to a function

is it possible to use a variable as an argument to a
function? for example: rng1.formula = "=sum(rng2)". im
trying to write a macro that places the sum formula in the
worksheet just below the data. i dont know how many rows
of data there is, so I cant hard code the sum range.