KyleJackMorrison
Board Regular
- Joined
- Dec 3, 2013
- Messages
- 107
- Office Version
- 365
- 2021
- 2019
- Platform
- Windows
Hello,
I'm looking for help with having my combobox that displays a list of Usernames in cells B2:B101, and once the user has selected a username to then populate all the information in the textboxes.
Here is my code so far:
So once the username has been select to put that as the active cell then the rest should fall intoplace.
Bonus:
Looking to have a 'Next Item' and 'Pervious Item' buttons so users can scroll through the different usernames.
could i use the following or would that be lazy?
Many thanks in advance.
I'm looking for help with having my combobox that displays a list of Usernames in cells B2:B101, and once the user has selected a username to then populate all the information in the textboxes.
Here is my code so far:
VBA Code:
Private Sub UserForm_Initialize()
Sheets("PASTE DATA").Range("B3").Select
ComboBox1.List = Sheets("Paste Data").Range("B2:B101").Value
ComboBox1.Value = ActiveCell
Username_TextBox.Value = ActiveCell.Offset(0, 1)
Primary_Owner_TextBox.Value = ActiveCell.Offset(0, 2)
'ect...
End sub
So once the username has been select to put that as the active cell then the rest should fall intoplace.
Bonus:
Looking to have a 'Next Item' and 'Pervious Item' buttons so users can scroll through the different usernames.
could i use the following or would that be lazy?
VBA Code:
ActiveCell.Offset(-1, 0).Select
ActiveCell.Offset(1, 0).Select
Many thanks in advance.