I have a ListBox (embedded in a sheet) that (upon clicking a button to refresh as needed) will fill with the names of all the sheets in the workbook. (Each has a checkbox to go with it.)
Code:
Private Sub CommandButton1_Click()
Dim i As Long
Me.ListBox1.Clear
For i = 1 To Sheets.Count
Me.ListBox1.AddItem Sheets(i).Name
Next
End Sub
I have tried some various options, but cant sort out a solution as to how to unhide and hide the sheets if they are checked and unchecked, respectively. (And to check/uncheck them if a user manually unhides or hides sheets the old fashioned way.)
Any help is appreciated. Thank you!
ListBix1on aUserFormor embedded on a sheet? - Alex P