Hi Helpers,
I have a VBA to copy the distinct values of a column from Sheet1 to Sheet2:
The issue I have is the source column contains formula results and not values (this I don't really want to change) therefore to the Sheet2 target column #N/A is added.
Can you tell how to copy the values instead of the formula using the above code? Is there something like CopySpecial similar to PasteSpecial? That would solve my problem I guess.
Thanks
I have a VBA to copy the distinct values of a column from Sheet1 to Sheet2:
VBA Code:
Sheets("Sheet1").Range("U2:U" & Sheet1Row).AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Sheets("Sheet2").Range("A2"), Unique:=True
The issue I have is the source column contains formula results and not values (this I don't really want to change) therefore to the Sheet2 target column #N/A is added.
Can you tell how to copy the values instead of the formula using the above code? Is there something like CopySpecial similar to PasteSpecial? That would solve my problem I guess.
Thanks