Hello all,
I use this multipage tool to be able to add multiple corrections to my excel database.
In my form i have a textbox where i enter names through a form with a listbox.
This form is accessed through the button cmdContacts.
This button is on page 1 of the multipage and on page 2.
The listbox on frmPersonsearch got this code;
But on page 1 of my multipage the textbox is names txtcorrectby and on page 2 it's txtcorrectby2.
How do i tell that when i acces frmPersonSearch from page 1 that it should fill txtcorrectby and when i acces frmPersonSearch from page 2 it should fill txtcorrectby2 and not txtcorrectby.
Hope i was clear..
Thanks in advance
I use this multipage tool to be able to add multiple corrections to my excel database.
In my form i have a textbox where i enter names through a form with a listbox.
This form is accessed through the button cmdContacts.
This button is on page 1 of the multipage and on page 2.
Code:
Private Sub cmdContacts_Click()
frmPersonSearch.Show
End Sub
The listbox on frmPersonsearch got this code;
Code:
Private Sub lstSearchResults_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Productionreturns.txtCorrectBy2.value = Application.WorksheetFunction.VLookup(Me.lstSearchResults.value, Sheets("Shifts").Range("A1:D100"), 2, False)
Unload Me
End Sub
But on page 1 of my multipage the textbox is names txtcorrectby and on page 2 it's txtcorrectby2.
How do i tell that when i acces frmPersonSearch from page 1 that it should fill txtcorrectby and when i acces frmPersonSearch from page 2 it should fill txtcorrectby2 and not txtcorrectby.
Hope i was clear..
Thanks in advance