+ Reply to Thread
Results 1 to 2 of 2

Copying a worksheet-part of a larger piece of code

  1. #1
    Registered User
    Join Date
    01-25-2006
    Posts
    10

    Question Copying a worksheet-part of a larger piece of code

    Hi,

    I need to copy a worksheet and paste it in between another two in the same workbook. I need to copy the whole worksheet so that all the page setup and print area settings are the same.

    This step will be part of a larger piece of code so I need to use VBA.

    Any help appreciated.
    Thanks
    SusieQ

  2. #2
    Ron de Bruin
    Guest

    re: Copying a worksheet-part of a larger piece of code

    hi Susie

    You can use this to copy the activesheet after a sheet named "Sheet2"

    ActiveSheet.Copy after:=Sheets("Sheet2")


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "SusieQ" <SusieQ.22yvd0_1139496304.2487@excelforum-nospam.com> wrote in message
    news:SusieQ.22yvd0_1139496304.2487@excelforum-nospam.com...
    >
    > Hi,
    >
    > I need to copy a worksheet and paste it in between another two in the
    > same workbook. I need to copy the whole worksheet so that all the page
    > setup and print area settings are the same.
    >
    > This step will be part of a larger piece of code so I need to use VBA.
    >
    > Any help appreciated.
    > Thanks
    > SusieQ
    >
    >
    > --
    > SusieQ
    > ------------------------------------------------------------------------
    > SusieQ's Profile: http://www.excelforum.com/member.php...o&userid=30818
    > View this thread: http://www.excelforum.com/showthread...hreadid=510569
    >




+ 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