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.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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?
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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
Back
Top