+ Reply to Thread
Results 1 to 5 of 5

move active sheet after LastSheet

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    move active sheet after LastSheet

    Hello,
    I need to move the active sheet after the Last Sheet I was on it.
    The Last Sheet Name is already recorded in a range called LastSheet in my current workbook.
    Here is how I wrote this code:
    Please Login or Register  to view this content.
    but this is not working.
    What is wrong here?
    Could you please advise?
    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: move active sheet after LastSheet

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: move active sheet after LastSheet

    Or maybe this, with a Named Range:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: move active sheet after LastSheet

    Thanks,
    It works!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: move active sheet after LastSheet

    You're welcome. Thanks for the rep.

+ 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. Macro to go back to the last active sheet and hide the active sheet
    By yatahaze in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2014, 08:18 AM
  2. Replies: 1
    Last Post: 07-07-2014, 09:19 AM
  3. [SOLVED] save active sheet in new workbook, naming it as cell value of active sheet
    By arkharova.s in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2014, 06:16 AM
  4. Replies: 1
    Last Post: 01-04-2014, 06:37 PM
  5. [SOLVED] Move Cell in non active sheet to specific range
    By pradeepdeepu_001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2012, 11:21 AM
  6. Replies: 2
    Last Post: 12-11-2008, 10:18 AM
  7. Copy from active sheet and paste into new sheet using info from cell in active
    By Ingve in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2006, 06:00 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