+ Reply to Thread
Results 1 to 3 of 3

"sheet" name assignment re-ordering

  1. #1
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    "sheet" name assignment re-ordering

    please see my image. is there way to make sheets that appear in code editor show in order that i want? in my image, i circle 2 sheets that are always visible and are on left side of interface where sheets are listed at bottom of the screen. but what i want is for those circled and 3 more like it to appear at top of the list for lowest indexed because they are left-most on my workbook. is that possible? how excel assigns these numbers? and what happens with the numbers if i create sheets and then delete them. do the numbers get mixed up? because i think i did lot of that in this book. thank you
    Attached Images Attached Images

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: "sheet" name assignment re-ordering

    Hi,

    The VBE sheet code names appear in alphabetical order. You'd need to edit the sheet property code name and add an initial "a", "aa", "aaa"...etc to the existing names

    Programatically you can change the code names with

    Please Login or Register  to view this content.
    You may need to change the Trust Centre Macro settings to allow access to the VBA Project Object model
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: "sheet" name assignment re-ordering

    what you mean they appear in alpha order? they literally appear like this to me in the image

    Please Login or Register  to view this content.
    and i created them in this order
    Please Login or Register  to view this content.
    can i get them reordered based on what you said? really what i want is order of creation, even if i delete sheets in between creating new ones
    Please Login or Register  to view this content.

+ 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. Ribbon Problem: "Wrong Nr of Arguments or invalid property assignment"
    By CaptMac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2015, 04:17 PM
  2. Replies: 1
    Last Post: 01-20-2015, 11:26 PM
  3. Script not copying data from "Emails" sheet to "New Sheet" - Run time error: Object
    By methuselah90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2014, 03:22 PM
  4. Replies: 3
    Last Post: 05-31-2013, 05:16 AM
  5. Replies: 1
    Last Post: 06-07-2012, 11:38 AM
  6. "Wrong number of arguments or invalid property assignment" *sigh*
    By bg_enigma1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2012, 05:54 PM
  7. Replies: 4
    Last Post: 04-11-2011, 01:25 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