I'm trying to write vba where column O will first filter out #N/A, and copy visible cells only (I have this code below).
Next (I can't figure out without error), I want to copy this filtered/visible range from column O to the same visible range in column M.
When I manually try: Select Range -> GoTo -> Special -> Visible Cells Only, then try to paste I get the error "action won't work on multiple selections", and I can't figure out what the code might be. Any assistance on this would be much appreciated. Thanks.
Sample Data filtered list/visible cells only. I want to paste a copy of column O into column M:
Column M Column O
Row Name Customer Name
1 Dell 02-Dell
2 Apple 03-Apple
4 Acer 04-Acer
5 Lenova 05-Lenova
6 Asus 06-Asus
12 Etc Etc
Range("O1").Select
Selection.AutoFilter Field:=15, Criteria1:="<>#N/A"
Range("O2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Next (I can't figure out without error), I want to copy this filtered/visible range from column O to the same visible range in column M.
When I manually try: Select Range -> GoTo -> Special -> Visible Cells Only, then try to paste I get the error "action won't work on multiple selections", and I can't figure out what the code might be. Any assistance on this would be much appreciated. Thanks.
Sample Data filtered list/visible cells only. I want to paste a copy of column O into column M:
Column M Column O
Row Name Customer Name
1 Dell 02-Dell
2 Apple 03-Apple
4 Acer 04-Acer
5 Lenova 05-Lenova
6 Asus 06-Asus
12 Etc Etc
Range("O1").Select
Selection.AutoFilter Field:=15, Criteria1:="<>#N/A"
Range("O2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy