P
Patrick C. Simonds
I have a large worksheet which I would like to filter from within a UserForm
(that I have working), my problem is that I want to populate some TextBoxes
based on that filtered data. To populate TextBox1 is easy since it is the
active row but how do I populate TextBox2 in this example? The required
data could be in the next row down or it might be 97 rows down.
Below is just an example, the final product will have a number of other
TextBoxes and OptionButtons based on the values contained in each row.
Private Sub UserForm_Initialize()
Dim rng
Set rng = Cells(ActiveCell.Row, 1)
TextBox1.Value = rng(1, 3).Value
TextBox2.Value = rng(2, 3).Value
End Sub
(that I have working), my problem is that I want to populate some TextBoxes
based on that filtered data. To populate TextBox1 is easy since it is the
active row but how do I populate TextBox2 in this example? The required
data could be in the next row down or it might be 97 rows down.
Below is just an example, the final product will have a number of other
TextBoxes and OptionButtons based on the values contained in each row.
Private Sub UserForm_Initialize()
Dim rng
Set rng = Cells(ActiveCell.Row, 1)
TextBox1.Value = rng(1, 3).Value
TextBox2.Value = rng(2, 3).Value
End Sub