I have a program that has a Listbox1 on Form1, and I want that when I press the Modify button, the form is closed and the Id item goes to a Label1 on Form2.
I tried using the Userform_Load but I do not know how to assign the selected row of Listbox1.
I have also intando the following
Private Sub UserForm_Initialize () Dim i As Integer 'I get the index that is selected i = HistoryTickets.lstTicketsProblems.SelectedIndex
'I pass the item value lblCorrelativoTk.Text = HistorialTickets.lstTicketsProblemas.Items (i) .Text
and I get method error or can not find member data.
Waiting for your comments.