A window with the names of the worksheets

sofas

Active Member
Joined
Sep 11, 2022
Messages
468
Office Version
  1. 2019
Platform
  1. Windows
Hello. Use this code to display a list of worksheet names. Can I control its size to be larger?

VBA Code:
Sub Sheetlist()

On Error Resume Next
Dim ws As Worksheet
For Each ws In Worksheets

'WS.Visible = True
Next
  Application.CommandBars("Workbook Tabs").Controls("More Sheets...").Execute
  If Err.Number > 0 Then
    Err.Clear
     Application.CommandBars("Workbook Tabs").ShowPopup
 
  End If
  ActiveWindow.ScrollColumn = 1
  ActiveWindow.ScrollRow = 1
  On Error GoTo 0


End Sub
 

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.
I doubt it, but if you can it will only be if you can find API code that allows you to resize a dialog inside an application. I think it would be easier to create your own form.
 
Upvote 0
Similar question about Name Manager dialog
which seems leads to a code solution here based on the little animation
A ton of code, which is usually what you get when using API's.
Good luck, but I think I'd use my own form if it did what I want.
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,973
Members
449,059
Latest member
oculus

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