Thanks for all of your replies! It was interesting to see your different takes on it!
Originally Posted by
Paul_Hossler
If there's empty cells within the top/bottom range, I'd guess that they were not to be included??
Paul
Well, ideally that would be the case, but (as I didn't tell you) the function is used to generate validation lists based on the name of the sheet, the actual generation of the lists look something like:
With changedCell
Set listStartsInCell = listStartsInCell.Find(sheetname, MatchCase:=False).Offset(2, 1)
.Offset(0, 1).Validation.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=("=" + makeList(listStartsInCell.Offset(0, 1)).Address(external:=True))
.Offset(0, 2).Validation.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=("=" + makeList(listStartsInCell.Offset(0, 2)).Address(external:=True))
End With
I don't think that works with a union of cells, I guess I could add in some checking and editing of the possible lists, but as the users hopefully won't tamper with them I think I'll just try to go with the current version of the formula for now.
And again, thanks a ton for all of your input, it helps my own thinking too to be able to air some of my ideas here