Paste Special from Filtered Range

somesoldiers

Board Regular
Joined
Feb 23, 2008
Messages
190
Hi Guys

Quick one for you. Can you advise the correct syntax to paste special the below as my source data contains formulae which are dropping off when copied? Thanks Noel.

Code:
ActiveSheet.Range("$A$1:$BI$5").AutoFilter Field:=34, Criteria1:="3.1 A-Equities"
    Range("AI7:AI" & Cells(rows.Count, "A").End(xlUp).row).SpecialCells(xlCellTypeVisible).Copy _
    Sheets("3.1 A-Equities").Range("A3")
 

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

somesoldiers

Board Regular
Joined
Feb 23, 2008
Messages
190
thanks guys. have tried all sorts of version of the below to no avail....

Code:
 ActiveSheet.Range("$A$1:$BI$5").AutoFilter Field:=34, Criteria1:="3.1 A-Equities"
    Range("AI7:AI" & Cells(rows.Count, "A").End(xlUp).row).SpecialCells(xlCellTypeVisible).Copy
    Sheets("3.1 A-Equities").Range("A3").Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
 

somesoldiers

Board Regular
Joined
Feb 23, 2008
Messages
190
nevermind, I got this sorted in the end. Problem was with my turning off autocalc in the wrong place. thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,123,156
Messages
5,600,049
Members
414,357
Latest member
Gemma_R

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top