R
Rob W
Greetings,
The following code below finds empty cells in any of the columns and selects
the entire row.
When I run the code and run the range name.select I can see its selected all
the rows with a blank cell value in them.
Private Sub UserForm_Initialize()
Dim patientList As Range
Set patientList =
Sheets("Data").Range("A:A,D
,E:E,F:F,G:G").CurrentRegion
Set patientList = patientList.SpecialCells(xlCellTypeBlanks).EntireRow
patientList.Select
Me.comboPatient.RowSource = patientList.Columns(1).Address
End Sub
However when I populate my RowSoure (combo box) its only ever populates one
value (The first row it sees with a blank cell value)?
If i remove the line which find blank cells it lists all the values in
column A rather than the selection I require (any rows with blank values I
want to appear in the combo)
Can anyone please please help me, Im going crazy !!!
Thanks
Rob W
The following code below finds empty cells in any of the columns and selects
the entire row.
When I run the code and run the range name.select I can see its selected all
the rows with a blank cell value in them.
Private Sub UserForm_Initialize()
Dim patientList As Range
Set patientList =
Sheets("Data").Range("A:A,D

Set patientList = patientList.SpecialCells(xlCellTypeBlanks).EntireRow
patientList.Select
Me.comboPatient.RowSource = patientList.Columns(1).Address
End Sub
However when I populate my RowSoure (combo box) its only ever populates one
value (The first row it sees with a blank cell value)?
If i remove the line which find blank cells it lists all the values in
column A rather than the selection I require (any rows with blank values I
want to appear in the combo)
Can anyone please please help me, Im going crazy !!!
Thanks
Rob W