English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Below is a Excel Macro program I am trying to alter hope you can help
..................................................................................................................
Range("A1").Select
ActiveCell.FormulaR1C1 = "1"
Range("C1").Select
Selection.Copy
Range("E1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
...................................................................................................................
So, I would like to make a loop (if that is the way to do it) that will increase the input in cell A1 by 1 (up to aprox 1700) on each cycle and place the answer in the next cell E1, E2, E3 etc that way I hope to avoid writing a very large program.. Thanks in advance for your help

2007-02-25 13:44:04 · 3 answers · asked by digger 1 in Computers & Internet Programming & Design

3 answers

check out http://www.pscode.com for great sample codes

2007-02-25 17:20:09 · answer #1 · answered by Richard H 7 · 0 2

You can use for n= 1 to 1700,,next construct to run the loop.
But Range("C1") value in your example has not changed in anyway.
If you just want to increment each row number by one there are easier ways too.

2007-02-26 02:34:53 · answer #2 · answered by unnga 6 · 0 1

Your Q is answered here

http://answers.yahoo.com/question/index?qid=20070225184431AAO0vEe

Enjoy my profile, I am the VBAXLMan

2007-02-26 06:04:12 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers