OK, I have a question that I am stuck on. I would like to allow users to display a userform that lists all worksheets except for three (Sheet 1, Sheet 2, Sheet 3) in the workbook and has a textbox next to the worksheet name that displays the value of cell A1 in that particular worksheet. The user can then change the value in this textbox and when they hit OK at the bottom, it updates the value in that cell on the respective worksheet. Each user may have a different number of worksheets, so scrolling needs to be enabled on the userform. I have a userform displaying the names of all the worksheets, but am struggling with the rest. Here is what I have so far:
Any help would be awesome! Thanks!
Code:
Private Sub UserForm_Activate()
Dim shtSheet As Worksheet
Dim strSheetNames As String
For Each shtSheet In ActiveWorkbook.Worksheets
strSheetNames = strSheetNames & shtSheet.Name & Chr$(13)
Next shtSheet
Me.Label1 = strSheetNames
End Sub