+ Reply to Thread
Results 1 to 4 of 4

in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get a reference to the newly created copy of this sheet?

  1. #1
    Dave Peterson
    Guest

    Re: in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get areference to the newly created copy of this sheet?

    dim newWks as worksheet

    with activeworkbook
    .sheets("mysheet).copy _
    before:=.sheets(1)
    end with
    set newwks = activesheet
    newwks.name = "this is a new sheet!"

    (the activesheet is the one that just got created.)

    Daniel wrote:
    >
    > in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get a reference to
    > the newly created copy of this sheet?


    --

    Dave Peterson

  2. #2
    Dave Peterson
    Guest

    Re: in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get areference to the newly created copy of this sheet?

    dim newWks as worksheet

    with activeworkbook
    .sheets("mysheet).copy _
    before:=.sheets(1)
    end with
    set newwks = activesheet
    newwks.name = "this is a new sheet!"

    (the activesheet is the one that just got created.)

    Daniel wrote:
    >
    > in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get a reference to
    > the newly created copy of this sheet?


    --

    Dave Peterson

  3. #3
    Daniel
    Guest

    in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get a reference to the newly created copy of this sheet?

    in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get a reference to
    the newly created copy of this sheet?



  4. #4
    Dave Peterson
    Guest

    Re: in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get areference to the newly created copy of this sheet?

    dim newWks as worksheet

    with activeworkbook
    .sheets("mysheet).copy _
    before:=.sheets(1)
    end with
    set newwks = activesheet
    newwks.name = "this is a new sheet!"

    (the activesheet is the one that just got created.)

    Daniel wrote:
    >
    > in VBA Sheets("mysheet").Copy Before:=Sheets(1) how do i get a reference to
    > the newly created copy of this sheet?


    --

    Dave Peterson

+ 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