Hi, I have made a userform. I am trying to populate certain textboxes based on a drop down combo box which is filled from a dynamic range. This range can range from 1 person to 20/30. Also, I want to be able to change the data in the textboxes if required.
This is my userform
Any suggestions how I can do this or the most efficent way to do this.
This is my work list.
VBA Code:
Private Sub UserForm_Initialize()
Set Rng = Sheet6.Range("A2", Sheet6.Range("A" & Rows.Count).End(xlUp))
Me.ComboBox1.RowSource = Rng.Address
End Sub
This is my userform
Any suggestions how I can do this or the most efficent way to do this.
This is my work list.
CPAP Database V1.5.xlsm | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | |||
1 | ||||||||||||||||||||||||
2 | MRN | Date Preformed | First_Name | Second_Name | DOB | Gender | Phone | AHI (ORG) | Arousal Index (ORG) | PLM index (ORG) | ESS (ORG) | Date Range (New) | AHI (New) | %Data USED (NEW) | % Days Used 4>hrs (NEW) | Average hrs of use (NEW) | ESS (NEW) | Comment | GP Address | GP Name | Commerical Driver: | Medical Card: | ||
3 | 123 | 29/01/2025 | John | Peter | 1/1/3036 | f | 123456789 | 66 | 55 | 55 | 12 | 29/01/2024 | 15 | 55 | 55 | 10 | 14 | Good use of machibne | 123 The adres s of GP | Dr Name. | No | Yes | ||
Wrk_List |