![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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 |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Sub CopyHeader_ActiveCell() 'Copies Header range to Activecell [A1:H3].Copy ActiveCell End Sub |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Leiden, The Netherlands
Posts: 68
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|