Copy & paste Macro

Dazed & Confused

New Member
Joined
Jul 29, 2010
Messages
3
Hi Members, I'm not sure if this is possible i've just started playing around with Excel, im trying to figure out if i can create a macro to copy & paste a formula in a single column cell by cell very basic this is as far as I have got...
Sub Macro1()
Range("E1").Select
Selection.Copy
Range("E2").Select
ActiveSheet.Paste

Application.CutCopyMode = False
Which is not very useful to me I was hoping to run 1 macro to copy Range E1 E2, E2 E3,
E4 E5, E6 E7 and so on. I may be asking too much. I'm using 07 Thanks.
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Dannyh1

Well-known Member
Joined
Nov 18, 2009
Messages
1,144
Hi,

Do you want to:
copy E1:E2 paste into E2
copy E2:E3 paste into E3
copy E3:E4 paste into E4

etc.

Are the cell values or formula?
 

njimack

Well-known Member
Joined
Jun 17, 2005
Messages
7,764
Try this: (untested)

Sub TEST()
Dim n as Long
For n = 1 to 7
Range(cells(n,5),cells(n+1,5)).Copy Destination:= cells(n+1,5)
Next n
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,719
Messages
5,597,734
Members
414,170
Latest member
Mdm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top