Reorder Sheet Numbers in the Project Window

stuartgb100

Active Member
Joined
May 10, 2015
Messages
322
Office Version
  1. 2021
Platform
  1. Windows
Hi,
I'm looking to change the order of sheets shown in the Project window.
For example, take two sheets:
#Genre - this shows as Sheet1(#Genre) in the Project window
&
#Worksheet Names Index - this shows as Sheet2(#Worksheet Names Index) in the Project Window

#Genre is the 1st entry in the Project window, but
#Worksheet Names Index is 12th entry

How do I make #Worksheet Names Index the 2nd entry, please ?

Thanks.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The VBA project shows the sheets in alphabetical order based on the "Code" name. Sheet2 comes after Sheet10, Sheet11, Sheet12, ... Sheet19. You can change the order if you edit the Code name. Show the Properties in the VBA project, click on Sheet2, and change the Name.

1722456339132.png


1722456430229.png



1722456381775.png
 
Upvote 0
Solution
Many thanks.
I understand better, and thanks for the example of "ASht(#Worksheet Names Index".

So, in your example
why is "ASht(#Worksheet Names Index" not listed AFTER Sheet20(Sheet20), please ?

Thanks.
 
Upvote 0
A comes before S in the alphabet. It sorts by the code name. I wish I could use numbers as the first character in the code name, but no.
 
Upvote 0
Ooops !
Sorry, that wasn't the question that I meant to ask.
Should have been:
So, in your example
why is "Sheet2(#Worksheet Names Index" not listed AFTER Sheet20(Sheet20),

Thanks.
 
Upvote 0

Forum statistics

Threads
1,221,556
Messages
6,160,476
Members
451,649
Latest member
fahad_ibnfurjan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top