Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

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

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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;



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




    Kind Regards,
    Ivan F Moala From the City of Sails

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    Leiden, The Netherlands
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •