Forum Discussion
Excel
Mar 12, 2021Iron Contributor
Question related to hidden sheet in excel VBA
Hello Everyone, Suppose i have sheet. And i hide the ZAN sheet Like - When i run the code, then i select ZAN sheet in dropdown Like - Then it give me error. like - ...
HansVogelaar
Mar 12, 2021MVP
Change the UserForm_Initialize event procedure like this:
Private Sub UserForm_Initialize()
Dim wsh As Worksheet
For Each wsh In Worksheets
If wsh.Visible = xlSheetVisible Then
Me.cboWhichSheet.AddItem wsh.Name
End If
Next wsh
End Sub
Excel
Mar 12, 2021Iron Contributor
Hello Sir,
Thank you so much sir😊😊
Thank you so much sir😊😊