VBA to list worksheet names apart from

nicic

New Member
Joined
Sep 20, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi there,
I'm hoping someone can help. I'm creating a 'quick look' page, and need the worksheetnames in the first column to appear automatically, and change as sheets are added etc.
There will be 2-3 sheets I don't want listed.

I've played around with some vba code, I have a nice one from here to create a menu of all the sheets, which is hyperlinked. But my brain is struggling today, and I can't fathom how to list the worksheet names without a hyperlink, and in the cell I want (B3).

So basically, how can I autpoulate cells with worksheet names, that change dynamically, and stop it listing a set 3 sheets (names will be static). Oh and preferably sort a-z?

Thanks
 
That code does turn them into hyperlinks, which you originally said you didn't want
Sorry I've confused matters. The original post was regards a list without hyperlinks, I need that for something else.
But now I'm wondering if it would be better the use that for for the menu rather than the vba code?

Ideally I would like a menu of all the sheets, that can be filtered by a drop down list via product type. Say 'soap', lipbalm etc

I've done another thread asking about that.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Fluff "no need to use Lambda, you can just use this in the name manager"

Thanks for the information. Dave
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

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