Variable in a formula

G

GM

In this formula I would like [9] to become a variable that
will loop/next from 10 to 63. There are some other piecies
to this code, I just need to know how to make that 9 x.

TYIA
GM
 
B

Bob Phillips

and the formula is ....?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
G

GM

Boy am I stupid this formula

ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[9]
C2,Sheet1!R[9]C1)"
-----Original Message-----
Hi
which formula do you mean :)

--
Regards
Frank Kabel
Frankfurt, Germany
In this formula I would like [9] to become a variable that
will loop/next from 10 to 63. There are some other piecies
to this code, I just need to know how to make that 9 x.

TYIA
GM

.
 
F

Frank Kabel

Hi
try
ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[" & your_variable &
"]C2,Sheet1!R[9]C1)"


--
Regards
Frank Kabel
Frankfurt, Germany
GM said:
Boy am I stupid this formula

ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[9]
C2,Sheet1!R[9]C1)"
-----Original Message-----
Hi
which formula do you mean :)

--
Regards
Frank Kabel
Frankfurt, Germany
In this formula I would like [9] to become a variable that
will loop/next from 10 to 63. There are some other piecies
to this code, I just need to know how to make that 9 x.

TYIA
GM

.
 
B

Bob Phillips

what about the other on<vbg>

ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[" & your_variable &
"]C2,Sheet1!R[[" & your_variable & "]]C1)"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Frank Kabel said:
Hi
try
ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[" & your_variable &
"]C2,Sheet1!R[9]C1)"


--
Regards
Frank Kabel
Frankfurt, Germany
GM said:
Boy am I stupid this formula

ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[9]
C2,Sheet1!R[9]C1)"
-----Original Message-----
Hi
which formula do you mean :)

--
Regards
Frank Kabel
Frankfurt, Germany
In this formula I would like [9] to become a variable that
will loop/next from 10 to 63. There are some other piecies
to this code, I just need to know how to make that 9 x.

TYIA
GM

.
 
F

Frank Kabel

what about the other on said:
ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[" & your_variable &
"]C2,Sheet1!R[[" & your_variable & "]]C1)"

$#&"! missed that one :)
 
Top