+ Reply to Thread
Results 1 to 6 of 6

VBA to insert new sheets at the last position

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    VBA to insert new sheets at the last position

    Hi,

    What went wrong with this code? I want the new sheets to be placed at the last sheet of workbook

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: VBA to insert new sheets at the last position

    Inside the bracket.

    Sheets("NEW SCORECARD").Copy after:=Worksheets(ActiveWorkbook.Sheets.Count)

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: VBA to insert new sheets at the last position

    Hi JieJenn,

    Thanks a lot.

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: VBA to insert new sheets at the last position

    Hi.
    Try
    Please Login or Register  to view this content.

    regards

  5. #5
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: VBA to insert new sheets at the last position

    Hi Naveen,

    Thanks. It was resolved

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: VBA to insert new sheets at the last position

    If you want an identical sheet like "NEW SCORCARD" and copy it your new sheet will be named ("NEW SCORCARD (2)") since a sheet name must be unique in a workbook. You can then change the name to somthing more sutable i.e.:

    Please Login or Register  to view this content.
    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Insert scrollbar at cell position
    By icyrius in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2013, 09:00 AM
  2. insert data to monthly variing position
    By gado in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2009, 04:08 AM
  3. Copy/insert a row to a position defined in a form
    By bob_x28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2009, 08:34 AM
  4. Fix position when moving between Sheets
    By Pict in forum Excel General
    Replies: 2
    Last Post: 02-26-2009, 08:29 AM
  5. Replies: 1
    Last Post: 07-19-2006, 04:45 PM

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