Hello,
I'm a new member and I'm not entirely sure how this forum works and where to post questions.
I've been searching on this site as well as online and did manage to find some info, but none of them seem to work or doesn't apply.
Issue: I have a workbook with multiple tabs; each tab does something different.
In the first summary tab, I have 3 different columns (say columns A, G, & L) that lists hundreds of serial numbers (no letter characters) there are duplicates in all 3 columns.
I need to extract all unique serial numbers from all 3 columns in to one separate combined column within the same tab - so that the result is one column with all unique serial numbers in only the summary tab.
Is there a VBA macro that can do this; not using ARRAY formulas?
I can do the formula method; but I am looking for a VBA to prevent the file from crashing.
ARRAY formulas seems to take up a TON of processing power and takes over 20min just to save.
I have found several VBA that can extract unique values from one column in to a separate column but there seems to be no info on extracting from multiple columns.
The VBA macro I've been using for single column extraction is below, extracting values from column A, and pasting it to column B.
I've been playing with this Macro to incorporate multiple columns...but nothing seems to work.
PS - I am relatively new to VB Macros; although I am an experienced Excel user.
Any help would be much appreciated.
Thank you!
I'm a new member and I'm not entirely sure how this forum works and where to post questions.
I've been searching on this site as well as online and did manage to find some info, but none of them seem to work or doesn't apply.
Issue: I have a workbook with multiple tabs; each tab does something different.
In the first summary tab, I have 3 different columns (say columns A, G, & L) that lists hundreds of serial numbers (no letter characters) there are duplicates in all 3 columns.
I need to extract all unique serial numbers from all 3 columns in to one separate combined column within the same tab - so that the result is one column with all unique serial numbers in only the summary tab.
Is there a VBA macro that can do this; not using ARRAY formulas?
I can do the formula method; but I am looking for a VBA to prevent the file from crashing.
ARRAY formulas seems to take up a TON of processing power and takes over 20min just to save.
I have found several VBA that can extract unique values from one column in to a separate column but there seems to be no info on extracting from multiple columns.
The VBA macro I've been using for single column extraction is below, extracting values from column A, and pasting it to column B.
Code:
Option ExplicitSub CreateUniqueList()
Dim lastrow As Long
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
ActiveSheet.Range("A2:A" & lastrow).AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=ActiveSheet.Range("B2"), _
unique:=True
End Sub
I've been playing with this Macro to incorporate multiple columns...but nothing seems to work.
PS - I am relatively new to VB Macros; although I am an experienced Excel user.
Any help would be much appreciated.
Thank you!