Help - Copy table with conditional formatting to another sheet (formatting does not copy?)

sud2002

New Member
Joined
Jun 28, 2015
Messages
13
Hi Excel Gurus,

So this is on Excel version 2013, windows 10.

I have the below data below, I have set up conditional formatting so that the rows where column D (Days) is over 30 it highlights the entire row of data yellow.

My issue is that I am creating a macro that will copy and paste each data set (based on the name, so all of Elaine's will be one data set) into a new spreadsheet. So Elaine will have her own spreadsheet. However when I copy it over to the new spreadsheet the highlighting does not copy over, I know this is due to the conditional formatting but I am not sure what the workaround to this is. So could somebody please help?
bAp2AG


bAp2AG
snippet.jpg
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi,

What does your current code look like?

Just tested this with conditional formatting applied, there were no issues.

Code:
Sub copyall()

Sheets("Sheet1").Range("A1:A4").Copy Sheets("Sheet2").Range("A1")


End Sub
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

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