Lotus Cars
Board Regular
- Joined
- Feb 4, 2011
- Messages
- 55
Hi all,
I have two columns, one with numbers that could be individual, could be duplicate on another row. The second either has entries in, or is blank.
ie
8945
8946 identified
9405 identified
8945
1575
What I want is to go down the second column, identify the blanks, and put them into an individual array. However, if the number is duplicate, then I only want it once.
I'd got this far...
Dim blanks As String
Dim empties As String
Range("O2").Select
blanks = "Missing Project Numbers - "
Do
If ActiveCell = "" Then
n = 1
Do
If empties = "" Then empties = ActiveCell.Offset(0, -11)
n = n + 1
Loop Until empties = ActiveCell.Offset(0, -11)
End If
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell.Offset(0, -10) = ""
Range("A1").Select
but it does not like putting a number against empties to create the unique string / array.
Any ideas?
Cheers,
Lotus Cars
I have two columns, one with numbers that could be individual, could be duplicate on another row. The second either has entries in, or is blank.
ie
8945
8946 identified
9405 identified
8945
1575
What I want is to go down the second column, identify the blanks, and put them into an individual array. However, if the number is duplicate, then I only want it once.
I'd got this far...
Dim blanks As String
Dim empties As String
Range("O2").Select
blanks = "Missing Project Numbers - "
Do
If ActiveCell = "" Then
n = 1
Do
If empties = "" Then empties = ActiveCell.Offset(0, -11)
n = n + 1
Loop Until empties = ActiveCell.Offset(0, -11)
End If
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell.Offset(0, -10) = ""
Range("A1").Select
but it does not like putting a number against empties to create the unique string / array.
Any ideas?
Cheers,
Lotus Cars