B
bw
I have written for help on this previously, although the subject was a
little different. I have gone back to the original "easier" to understand
(for me) code so that if you provide a solution, I might be able to
understand.
The Combo Box has a finite number of entries, but I do not want to see those
that are "blank".
"CombinedData" is a named field that has the following code:
=BankData($AR$2:$AR$999) ' This would show the blank lines in my UserForm
So I changed the named field to look like the following:
=OFFSET(BankData!$AR$2,0,0,COUNTA(BankData!$AR$2:$AR$999),1)
and changed Data Validation to include the List =CombinedData.
There was no change in the "look" of the Combo Box values
Is there a way for me to restrict the values in the Combo Box to "Non-Blank"
values?
Thanks,
Bernie
Option Explicit
Private Sub CombinedBankNames_Change()
boxvalue = CombinedBankNames.Value
Call MoveBankData
End Sub
Private Sub UserForm_Initialize()
Dim MyArray As Variant
MyArray = Range("CombinedData")
CombinedBankNames.List = MyArray
End Sub
little different. I have gone back to the original "easier" to understand
(for me) code so that if you provide a solution, I might be able to
understand.
The Combo Box has a finite number of entries, but I do not want to see those
that are "blank".
"CombinedData" is a named field that has the following code:
=BankData($AR$2:$AR$999) ' This would show the blank lines in my UserForm
So I changed the named field to look like the following:
=OFFSET(BankData!$AR$2,0,0,COUNTA(BankData!$AR$2:$AR$999),1)
and changed Data Validation to include the List =CombinedData.
There was no change in the "look" of the Combo Box values
Is there a way for me to restrict the values in the Combo Box to "Non-Blank"
values?
Thanks,
Bernie
Option Explicit
Private Sub CombinedBankNames_Change()
boxvalue = CombinedBankNames.Value
Call MoveBankData
End Sub
Private Sub UserForm_Initialize()
Dim MyArray As Variant
MyArray = Range("CombinedData")
CombinedBankNames.List = MyArray
End Sub