Summary page based on conditional formatting

Cippycup

New Member
Joined
May 1, 2019
Messages
1
Hi all- I’m really struggling with the last step of my variance reporting for my company. I have a workbook with 30 or so sheets. Each section of business has 3 sheets. One of these sheets has been formatted to highlight certain variances that need explanation. I want to create a summary sheet that pulls the headers of each of these specific sheets, and then all lines that have the conditional formatting and then repeating through the workbook. Right now I am able to get it to create the summary sheet and pull all headers but can’t figure out how to add the data!!!

Code:
 `For Each ws In wb.Worksheets`

`ws.Activate`

`If ws.Range("a2") = "Budget Comparison" Then`

`' copy and paste headings to first empty row in the Summary sheet`

`lastrow = Sheets("Summary of Variances").Range("A" & Rows.Count).End(xlUp).Row`

`Range("A1,A2,A5,A6").EntireRow.Select`

`Selection.Copy Destination:=Sheets("Summary of Variances").Range("A" & lastrow + 2)`



`' copy and paste any highlighted rows in 65535 and 13434879 to first empty row in the Summary sheet`



`End If`

`Next`
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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