hi, ali84pk, as an option to get data for listbox from the closed workbook:
Private Sub UserForm_Initialize()
Application.ScreenUpdating = 0 - turn off screenupdating
'Set properties of listbox1
With Me.ListBox1
.BoundColumn = 1
.ColumnCount = 3
.ColumnHeads = True
.TextColumn = True
Set wb = Workbooks.Open("C:\Test\Book4.xls") ' - your workbook full path
x = wb.Sheets("Test").Range("a2:c15") ' - your Sheet name that contains the data required
.List = x
.ListStyle = fmListStyleOption
.ListIndex = 0
End With
wb.Close 0
Application.ScreenUpdating = 1 - turn on screenupdating
End Sub
Bookmarks