View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cardiff Maths Student Cardiff Maths Student is offline
external usenet poster
 
Posts: 4
Default How do I output a formula into a cell and then autofill using vb?

Hi!
I need to output a formula into a cell and then autofill. My problem is that
I don't know how far down this will go because it depends on a parameter that
the user has chosen. I will also need to sum this column. i.e.
I would normally write a loop:
For i=1 to n
Cells(i,1)=(1+(Cells(i,2))^2/Cells(1,3)
Next i ..etc
But I need the actual formula in the cell not just the value because I will
then be using Solver so the cells need to be connected to each other. Is this
possible?