+1  A: 

Try this:

Create A Macro with the following thing inside:

Selection.Copy
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
ActiveCell.Offset(-1, 1).Select
Selection.Copy
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
ActiveCell.Offset(0, -1).Select

That particular macro will copy the current cell (place your cursor in the VOL cell you wish to copy) down one row and then copy the CAP cell also.

This is only a single loop so you can automate copying VOL and CAP of where your current active cell (where your cursor is) to down 1 row.

Just put it inside a For loop statement to do it x number of times. like:

For i = 1 to 100 'Do this 100 times
    Selection.Copy
    ActiveCell.Offset(1, 0).Select
    ActiveSheet.Paste
    ActiveCell.Offset(-1, 1).Select
    Selection.Copy
    ActiveCell.Offset(1, 0).Select
    ActiveSheet.Paste
    ActiveCell.Offset(0, -1).Select
Next i
Jimmy Chandra
THANKS! I got it working. Now I need the loop to run until my left side column (date range) is blank. I will see how I can do this - if anyone can input - would greatly appreciate.
Techgirl09
Changing the active cell makes the code run awfully slow.
Wilhelm
+1  A: 

Here is my sugestion:

Dim i As integer, j as integer

With Worksheets("TimeOut")
    i = 26
    Do Until .Cells(8, i).Value = ""
        For j = 9 to 100 ' I do not know how many rows you will need it.'
            .Cells(j, i).Formula = "YourVolFormulaHere"
            .Cells(j, i + 1).Formula = "YourCapFormulaHere"
        Next j

        i = i + 2
    Loop
 End With
Wilhelm
Thanks - that copied and pasted my formula through the cells but in order for it to do that, I need to manually enter the formula into the first two cells and then click on macro. Is there any way to make it completely automatic? For example if my sheet is completely blank as in the third STATION, how can the formula automatically be populated throughout?
Techgirl09
With justhe code here the formula is written on the formula property, it is not copied. There is no need for you to write the formula in the first two cells.
Wilhelm
A: 

I'd recommend the Range object's AutoFill method for this:

rngSource.AutoFill Destination:=rngDest

Specify the Source range that contains the values or formulas you want to fill down, and the Destination range as the whole range that you want the cells filled to. The Destination range must include the Source range. You can fill across as well as down.

It works exactly the same way as it would if you manually "dragged" the cells at the corner with the mouse; absolute and relative formulas work as expected.

Here's an example:

'Set some example values'
Range("A1").Value = "1"
Range("B1").Formula = "=NOW()"
Range("C1").Formula = "=B1+A1"

'AutoFill the values / formulas to row 20'
Range("A1:C1").AutoFill Destination:=Range("A1:C20")

Hope this helps.

Nossidge
A: 

Hi there,

This isnt an answer but a question for this forum question.

I will have some values in Column A and a date in Column E

Column A....... Column E

Site 1........... 01/01/2010

Site 1

Site 1

Site 2...........02/01/2010

Site 2

Site 3

Site 4

What i need to do is to iterate through Column A till the site name changes then select the cell with the date in it and copy and paste down the Column E.

Now the date isnt entered in Column E till the user enters the date into a form that i have created. hence the reason Column A has to be used as the counter till for the Site Name change.

Any help would be really great

Many Thanks

Andrew

Andrew
echoblaze