I have a range of cell addresses saved as a range, which I then want to return as a list of individual cell addresses. I can't seem to find anything online that says this is posible, does anyone know otherwise?
Many thanks
What I have got so far:
Function AN()
Dim CellRange As String Dim a() As String Dim intCount As Integer
Dim strTemp
For Each C In ActiveCell.Offset(0, 0).Range("A1:A46")
If C = "" Then
C.Select
CellRange = Range("C" & ActiveCell.Row, ActiveCell.Offset(0, -1)).Address
a = split(CellRange)
For intCount = LBound(a) To UBound(a)
MsgBox a(intCount)
Next
This gives me the two extremes of the range, but not the cells in between. Split doesn't seem to be working - I'm still getting to grips with it so please forgive any errors there .. it's been a long day!