View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
REM[_2_] REM[_2_] is offline
external usenet poster
 
Posts: 9
Default Syntax in worksheet functions for individual values instead of ranges

I am trying to use the TREND function in a macro but cannot work out
the syntax. I only need a single value result and can get the
following to put the correct value into the active cell:
ActiveCell.FormulaR1C1 = "=TREND({5;10},{10;20},15)"

But dont know how to evaluate this to a variable, without using a
cell.
Ideally I would like the numbers to be variables also.

Any help gratefully received.

Rod