A window with the names of the worksheets

sofas

Well-known Member
Joined
Sep 11, 2022
Messages
559
Office Version
  1. 2021
  2. 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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,223,924
Messages
6,175,416
Members
452,640
Latest member
steveridge

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