Fill Data across multiple Worksheets - Formulas

H

heater

I have one worksheet (let's call it Investor 1) with formulas looking at a
few other worksheets for the data. I have numerous other worksheets (each
one is another investor) that need to look at the same worksheets that
investor 1 is looking at, but the formulas on each new investor worksheet
need to change. Excel does this for you automatically if you are on the same
worksheet, but when you create multilpe worksheets how can you fill the data
across each new worksheet and make the formulas adjust properly.

Simple example: Investor 1 worksheet: In cell b6 is ='sheet1'a2. On
Investor 2 worksheet in cell b6 it needs to be ='sheet1'a3. On Investor 3
worksheet in cell b6 it needs to be ='sheet1'a4. Can you do this with fill
data?
 
G

Gord Dibben

Sub Formula_Increment()
Dim iSht As Long
For iSht = 2 To Worksheets.Count
With Worksheets(iSht).Range("B6")
.Formula = "=Sheet1!A" & iSht
End With
Next iSht
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top