Macro to copy a group of cells to the active cell?

I Fraser

New Member
Joined
Apr 18, 2002
Messages
1
I am trying to create a macro which will copy a "Header" (Cells A1:H3) to the active cell (where I would loke to start a new page in the spreadsheet)the such that the upper left of the range is located at the active cell. All of my attempts so far using "Create Macro" result in the active cell relocating to the range of cells being copied, and the header simply copies over itself.

Any thoughts on how to do this?

Thanks,

Ian Fraser
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
On 2002-04-19 19:54, I Fraser wrote:
I am trying to create a macro which will copy a "Header" (Cells A1:H3) to the active cell (where I would loke to start a new page in the spreadsheet)the such that the upper left of the range is located at the active cell. All of my attempts so far using "Create Macro" result in the active cell relocating to the range of cells being copied, and the header simply copies over itself.

Any thoughts on how to do this?

Thanks,

Ian Fraser

Ian Try this;

<pre/>

Sub CopyHeader_ActiveCell()
'Copies Header range to Activecell
[A1:H3].Copy ActiveCell
End Sub


</pre>
 
Upvote 0
Ian,

just in case you didn't already know: you can have a number of header rows repeated automatically at the top of every page when printing a sheet. See "File - Page Settings - Sheet". Also, you can freeze header rows so they stay visible when you scroll down the sheet. Use Windows - Freeze Panes.

Marc
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,211
Members
448,554
Latest member
Gleisner2

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