Dropdown selection to unhide worksheets

ysplace

New Member
Joined
Sep 29, 2017
Messages
10
Hi everyone,

I need some help and hopefully I can explain it clearly. I have an excel workbook that consists of 57 worksheets. I want to hide all worksheets but use a listbox to selected worksheets visible. HOWEVER....The listbox names are not exactly the same names as the worksheets. Due to size limitation for the name of each worksheet, I had to abbreviate the name. I want the listbox names to be what users are used to seeing. Here is an example:

In List Box
Actual Worksheet Name
Escrow BalanceEscrow Balance
Accrued InterestAccrued Interest
Late Charge Balance and Calculation VariablesLate Chg & Bal Calc
Recurring Fee Balance and Calculation VariablesRecur Fee Bal & Calc
Mortgage InsuranceMtg Insurance
Mortgage Insurance Payment InformationMtg Ins Pymt Info
Simple InsuranceSimple Insurance
Financed Single Life InsuranceFinc'd Single Life Ins
Financed Joint Life InsuranceFin'd Jt Life Ins
Financed Accident & Health InsuranceFinc'd ACC Hth Ins
Financed Interest BalanceFinanced Int Balance

<tbody>
</tbody>

If user select "Late Charge Balance and Calculation Variables than make visible worksheet "Late Chg & Bal Calc". Any suggestions?

Thank you!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about using a two column listbox with the index number of the sheet as the second column. Make column 2 the bound column of the listbox and use it to refer to your sheet.
 
Upvote 0
If the appearance of a number is confusing, how does the end user make sense of an abbreviated worksheet name.
 
Upvote 0
If you want the actual sheet names in the listbox, how about
Code:
Private Sub UserForm_Initialize()
   Dim Ws As Worksheet
   For Each Ws In Worksheets
      Me.ListBox1.AddItem Ws.Name
   Next Ws
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,608
Messages
6,120,500
Members
448,968
Latest member
screechyboy79

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