+ Reply to Thread
Results 1 to 3 of 3

copy from previous page

  1. #1
    Myriam
    Guest

    copy from previous page

    I have a workbook with 20 sheets and I need to write a macro that will copy a
    range from the previous page using a command button.
    Example: CmdButton1= copy range Sheet1!A1:B5 into Sheet2!A1:B5, Cmd
    Button2= copy Sheet2!A1:B5 into Sheet3!A1:B5, etc. I was writing an
    individual macro for each sheet but there must be a more efficient way to do
    it. Is there a "copy previous page range" into ActiveSheet?
    Thanks a million for any help you can give me.
    Regards,



  2. #2
    Tom Ogilvy
    Guest

    Re: copy from previous page

    activesheet.previous.Range("A1:b5").Copy ActiveSheet.Range("A1:B5")

    --
    Regards,
    Tom Ogilvy


    "Myriam" <[email protected]> wrote in message
    news:[email protected]...
    > I have a workbook with 20 sheets and I need to write a macro that will

    copy a
    > range from the previous page using a command button.
    > Example: CmdButton1= copy range Sheet1!A1:B5 into Sheet2!A1:B5, Cmd
    > Button2= copy Sheet2!A1:B5 into Sheet3!A1:B5, etc. I was writing an
    > individual macro for each sheet but there must be a more efficient way to

    do
    > it. Is there a "copy previous page range" into ActiveSheet?
    > Thanks a million for any help you can give me.
    > Regards,
    >
    >




  3. #3
    Myriam
    Guest

    Re: copy from previous page

    Thanks!

    "Tom Ogilvy" wrote:

    > activesheet.previous.Range("A1:b5").Copy ActiveSheet.Range("A1:B5")
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Myriam" <[email protected]> wrote in message
    > news:[email protected]...
    > > I have a workbook with 20 sheets and I need to write a macro that will

    > copy a
    > > range from the previous page using a command button.
    > > Example: CmdButton1= copy range Sheet1!A1:B5 into Sheet2!A1:B5, Cmd
    > > Button2= copy Sheet2!A1:B5 into Sheet3!A1:B5, etc. I was writing an
    > > individual macro for each sheet but there must be a more efficient way to

    > do
    > > it. Is there a "copy previous page range" into ActiveSheet?
    > > Thanks a million for any help you can give me.
    > > Regards,
    > >
    > >

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1