+ Reply to Thread
Results 1 to 12 of 12

Move sheet to the very beginning?

  1. #1
    Registered User
    Join Date
    02-05-2017
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    9

    Move sheet to the very beginning?

    Hello, I am completely new to VBA and am trying to learn it.
    I can't figure out how to move a named sheet to the very beginning.

    I've got:

    Please Login or Register  to view this content.
    I've also tried this:

    Please Login or Register  to view this content.
    But it doesn't do it. It just keeps adding it after sheet1. Can you help? Is it possible to move it before Sheet1? I can't figure it out. I've been looking online for a while...

    I know this is kiddy stuff to you. :/ Do you think you could please help?
    Last edited by jeffreybrown; 02-05-2017 at 03:10 PM. Reason: Please use code tags!

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Move sheet to the very beginning?

    See if this works (resource : https://msdn.microsoft.com/en-us/lib.../ff834742.aspx )


    Please Login or Register  to view this content.
    Last edited by Logit; 02-05-2017 at 03:02 PM.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Move sheet to the very beginning?

    Try to rely on sheet index like that
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Move sheet to the very beginning?

    Or all at once:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    02-05-2017
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Move sheet to the very beginning?

    Thank you all! None of those codes worked. I'm beginning to wonder if there's something wrong with my Excel VBA?

    I've tried doing it in a module and in a sheet. But literally nothing works.

    I looked at that Microsoft article and this one: https://msdn.microsoft.com/en-us/lib.../ff839847.aspx

    Do you guys have any advice? Do you think reinstalling Microsoft Office 2016 would help?

  6. #6
    Registered User
    Join Date
    02-05-2017
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Move sheet to the very beginning?

    Oh and sorry about the duplicate thread. There was an error with the webpage and I started over because I thought it didn't post.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Move sheet to the very beginning?

    Is the workbook shared?

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Move sheet to the very beginning?

    My code (Post #2) was placed into a routine module.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-05-2017
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    9
    Quote Originally Posted by shg View Post
    Is the workbook shared?
    No, it's not shared. Or not that i know of...

    I really have no idea what's wrong. :/

  10. #10
    Registered User
    Join Date
    02-05-2017
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    9
    Quote Originally Posted by Logit View Post
    My code (Post #2) was placed into a routine module.
    Thank you Logit! I'll try it out.

  11. #11
    Registered User
    Join Date
    02-05-2017
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Move sheet to the very beginning?

    Forgot to tell you, your code worked! Thank you!

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Move sheet to the very beginning?

    Great. Glad to help.

    Thanks. Please mark thread SOLVED.

+ 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. Formula to move text to beginning of cell
    By yankeekid86 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-27-2016, 10:08 AM
  2. Move Text From End Of String To Beginning
    By Tellm in forum Excel General
    Replies: 4
    Last Post: 06-28-2013, 06:09 AM
  3. Move Target Address Worksheet to the beginning.
    By mmctague in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2013, 06:19 PM
  4. [SOLVED] Script or formula to move text from beginning to end of a string
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2012, 10:18 AM
  5. [SOLVED] shortcut key to move to beginning of new row
    By bob engler in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2006, 03:10 PM
  6. need enter key to move to the next column beginning
    By j pantozzi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2005, 01:00 PM
  7. Shortcut key to move to beginning of a worksheet
    By Martha in forum Excel General
    Replies: 1
    Last Post: 02-22-2005, 04:06 PM

Tags for this Thread

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