Dear Gurus,
I want to get dropdown list of data which is from two different work sheets.
Right now, I am using following code to get dropdown list from one worksheet:
Now I want to include data of column A from worksheet Database-2 also along with worksheet Database.
Is there a way to do that?
I want to get dropdown list of data which is from two different work sheets.
Right now, I am using following code to get dropdown list from one worksheet:
Code:
Private Sub cmbreagid_DropButtonClick()
Dim i As Long, LastRow As Long
LastRow = Sheets("Database").Range("A" & Rows.Count).End(xlUp).Row
If cmbreagid.ListCount = 0 Then
For i = 1 To LastRow
cmbreagid.AddItem Sheets("Database").Cells(i, "A").value
Next i
End If
End Sub
Now I want to include data of column A from worksheet Database-2 also along with worksheet Database.
Is there a way to do that?