Here is some code that highlights any missing for any missing numbers in column A.
I was wondering if you could change it from highlighting to copying the missing numbers into a new spread sheet.
Code:
'Finding missing report numbers
Dim inc As Integer
Dim inc2 As Integer
Set myrng = Range("A2:A10000")
myrng.Interior.ColorIndex = xlNone
Set myrng = Range("A3:A10000")
clr = 3
inc = Range("A2").Value
For Each cel In myrng
If cel.Value <> (inc + 1) Then
cel.Interior.ColorIndex = clr
End If
inc = cel.Value
If cel.Value = "" Then
Exit Sub
End If
Next
I was wondering if you could change it from highlighting to copying the missing numbers into a new spread sheet.