Please, try the next code:
Sub Vlookpage()
Dim WS As Worksheet, shLkp As Worksheet, i As Integer
Dim lastRowL As Long, lastRowWs As Long, arrAA
'add sheet and name it lookup
Set shLkp = Sheets.Add(After:=Sheets(Sheets.count))
shLkp.Name = "lookup"
'take all column "A"s and add them to "vlookup"
For Each WS In Worksheets
If WS.Name <> shLkp.Name Then
lastRowWs = WS.Range("A" & rows.count).End(xlUp).row
lastRowL = shLkp.Range("A" & rows.count).End(xlUp).row
arrAA = WS.Range("A1:A" & lastRowWs).Value
shLkp.Range("A" & lastRowL + 1).Resize(UBound(arrAA), 1).Value = arrAA
End If
Next WS
'purge duplicates
shLkp.Range("A:A").RemoveDuplicates
End Sub
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…