Creating Arrays / Do Loops

This is a program that should move the old fat to next column and remove old fat there.  Then it needs to scan across a series of columns in row 2 until it finds the value true.  Next it will drop to row 11 and copy down to row 22 and paste into new column where old fat moved from.  What i need is to do this in sequence.  As I am new to this program I am unsure on what to do.

 
Sub OldFat()
' This is used to move the old fat values to another column
Range("e11:e22").Select
Selection.Copy
Range("f11:f22").Select
ActiveSheet.Paste
Range("e11:e22").Select
Selection.ClearContents
End Sub

Sub ClearFat()
'this is used to clear all the the old fat values from the
'table to put in new ones
Range("f11:f22").Select
Selection.ClearContents
End Sub

I have managed to get this work for a particular column so that it will select the values and paste them over.  What I then want it to do is obviously replace the E value with a letter so that it can select the relevant column.  In addition to this I also need it to scan for the right column before it does the code below  For this i believe that i need to use an array or a loop.  I am not sure how to do this though.

Sub TEST()
Range("E11").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E12").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E13").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E14").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E15").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E16").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E17").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E18").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E19").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E20").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E21").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Range("E22").Select
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
End Sub
LozLaura17Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EDDYKTCommented:
Sub TEST()

dim i
Range("E11").Select

for i=1 to 12
ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
ActiveCell.Offset(1, 0).Select
next
End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jaime OlivaresSoftware ArchitectCommented:
Sub TEST(column as String)
dim row as Integer
dim cell as String

For row=11 to 22
     cell = column & str(row)
     ActiveCell.Range(cell).Select
     ActiveCell.FormulaR1C1 = "=OFFSET(R[-9]C[3],9,0,1,1)"
Next

End Sub
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.