LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a formula using the loop variable


I wish to something I think is simple. In a loop, write formulas in a
series of horizontal cells, referencing a series of vertical cells
My attempt:

For ii = 1 To 11
ActiveCell.Offset(12, ii).FormulaR1C1 = "=R[" & ii & "]C[-1]"
Next

Which of course fails, but hopefully gives you the idea of what I
want.

I want the contents of those horizontal cells to end up like:
=H21 =H22 =H23 =H24

Thanks!
allan


--
Spector
------------------------------------------------------------------------
Spector's Profile: http://www.excelforum.com/member.php...o&userid=15618
View this thread: http://www.excelforum.com/showthread...hreadid=271630

 
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
Loop with variable name? Mike Excel Discussion (Misc queries) 6 April 25th 09 05:12 AM
Help with creating a loop Woodi2 Setting up and Configuration of Excel 1 April 19th 09 09:10 PM
Excel VBA Loop & Variable Reference Carolyn[_4_] Excel Programming 2 October 15th 04 08:30 PM
Creating a For Loop Justin Ragsdale Excel Programming 5 May 23rd 04 10:40 PM
Re-assigning the value of a variable for a for loop from Mike Berry Excel Programming 1 July 16th 03 02:41 PM


All times are GMT +1. The time now is 05:04 PM.

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

About Us

"It's about Microsoft Excel"