Paste Special from Filtered Range

somesoldiers

Board Regular
Joined
Feb 23, 2008
Messages
199
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")
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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
 
Upvote 0
nevermind, I got this sorted in the end. Problem was with my turning off autocalc in the wrong place. thanks
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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
Back
Top