Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Variable in a formula

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Variable in a formula

Hi
which formula do you mean :-)

--
Regards
Frank Kabel
Frankfurt, Germany
"GM" schrieb im Newsbeitrag
...
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Variable in a formula

and the formula is ....?

--

HTH

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

"GM" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Variable in a formula

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
"GM" schrieb im

Newsbeitrag
...
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


.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Variable in a formula

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


--
Regards
Frank Kabel
Frankfurt, Germany
"GM" schrieb im Newsbeitrag
...
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
"GM" schrieb im

Newsbeitrag
...
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


.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Variable in a formula

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" wrote in message
...
Hi
try
ActiveCell.FormulaR1C1 = "=MID(R2C5,Sheet1!R[" & your_variable &
"]C2,Sheet1!R[9]C1)"


--
Regards
Frank Kabel
Frankfurt, Germany
"GM" schrieb im Newsbeitrag
...
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
"GM" schrieb im

Newsbeitrag
...
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

.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Variable in a formula

what about the other on<vbg

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


$#&"! missed that one :-)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable VBA Max Formula Gizmo Excel Discussion (Misc queries) 2 June 6th 08 06:12 AM
DDE formula with variable Bruce Excel Worksheet Functions 0 November 16th 07 09:03 AM
Variable within a formula Tom Melosi Excel Worksheet Functions 4 August 21st 07 04:07 AM
Using a second variable within a formula... Ed Anton Excel Discussion (Misc queries) 2 February 18th 05 11:51 AM
Variable to formula. russell \(skmr3\) Excel Programming 1 July 30th 03 07:11 AM


All times are GMT +1. The time now is 02:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"