I am working on a userform that has a combobox and a set of textboxes. When the user selects a unique value from from the combobox the textboxes are updated.
The code for this process is Below.
What I am trying to get my userform to do is change the Activecell based on the selection in the combobox. All the values populating the combobox are in column A, If the value selected from the Combobox resides in cell A5 then A5 should also be the active cell.
What I am attempying to accomplish is, If the user edits the details in the userform, the edited details are written back to the correct cells on the worksheet.
Can anyone help me out with this?
The code for this process is Below.
Code:
Private Sub UserForm_Initialize()
Dim wsSheet As Worksheet
Dim rngNext As Range
Dim myRange As Range
Set wsSheet = Sheets("RLATAM")
With wsSheet
.Select
Set rngNext = .Range("A65536").End(xlUp)
End With
rngNext.Select
Set myRange = Range("A5", rngNext)
With ComboBox1
For Each rngNext In myRange
If rngNext <> "" Then .AddItem rngNext
Next rngNext
End With
End Sub
What I am trying to get my userform to do is change the Activecell based on the selection in the combobox. All the values populating the combobox are in column A, If the value selected from the Combobox resides in cell A5 then A5 should also be the active cell.
What I am attempying to accomplish is, If the user edits the details in the userform, the edited details are written back to the correct cells on the worksheet.
Can anyone help me out with this?