Hello
I would help for this problem , what I want populating data on userform for sheet hidden . the hidden sheet is sheet1. currently the code doesn't show any thing .
Private Sub ComboBox1_Change()
Dim NAT As Long
Dim sh As Sheets
Dim Name As String
Dim myrange As Range
On Error Resume Next
Sheets("sheet1").Visible = True
Name = Me.ComboBox1.Value
With Sheets("sheet1")
Set myrange = Range("B3:M9")
TextBox1.Value = Application.WorksheetFunction.VLookup(Name, myrange, 2, False)
TextBox2.Value = Application.WorksheetFunction.VLookup(Name, myrange, 3, False)
End With
Sheets("sheet1").Visible = False
End Sub
thanks