Hello!
1. Question; how to do this in EXcel VBA macro?
For i=1 To 99

I would like this formula to have in vba: slope.gif

2. How to do this in VBA:

x1*y1 + x2*y2 + x3*y3 + ... + x99 * y99 =
where y is from matrix: A(i, 5)

i thought that maybe like this:

For i=1 To 99
x = x + i
y = A(i,5)
----------
x * y


I have tried several ways, but so far no luck!
Please help :S