Move Colored rows to another sheet

Davinder

New Member
Joined
Aug 14, 2014
Messages
8
Hi All,

I have an excel workbook in which there are 5 sheets,

My routine task is to keep maintain a record of utility vendors with accounting date that is every Wednesday in our company

Generally what i do on every Wednesday is put total amount from invoice then invoice date from the same and then Accounting date for current Wednesday and highlight it with different color for future reference

Next step is copy colored rowss from vendor sheet and paste these rows to another sheet so that i can check which Wednesday how much i have entered.

Could you please provide me some formulas to transfer colored rows to another sheet automatically.


1. Sheet name "utility vendor" refer attached below and same format used in other sheets for other vendors,
Vendor Code & GL CodeInvoice #Account # & Amount to GL CodeTotal BillInvoice DateAccounting DateService Dates
APIENE222Ste100-07/14640060613-0715
APD045-00-60350.00
APIENE222B101-9/1364007
APD045-00-60360.00
APIENE222B102-5/14640080430-0512
APD045-00-60360.00
APIENE222B103-9/1364009
APD045-00-60360.00
APIENE222B104-9/1364009
APD045-00-60360.00
APIENE222B105-9/1364011
APD045-00-60360.00
APIENE222B106 - 9/1364012
APD045-00-60360.00
APIENE222B108-9/1364014
APD045-00-60360.00

<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi Davinder,

Give this a go... it will find cells in column A that are filled with the standard yellow colour then copy the entire row to a new workbook. Also there has to be no blank cells in column A...

Cheers,
Alan.

Code:
Sub CopyFilled2NewBook()
Dim NewBook As Workbook
Dim Current As Workbook
Dim i As Long
Dim NextRow As Variant
Set Current = ThisWorkbook
Set NewBook = Workbooks.Add
Current.Activate
i = 1
Do While Cells(i, 1).Value <> ""
    If Cells(i, 1).Interior.Color = 65535 Then
    Cells(i, 1).EntireRow.Copy
    
    NewBook.Activate
  
    NextRow = Range("A" & Rows.Count).End(xlUp).Row + 1
 
    Range("A" & NextRow).Activate
    ActiveSheet.Paste
    Current.Activate
    End If
    
    i = i + 1
    
Loop
NewBook.Activate
End Sub
 
Upvote 0
Maybe change this line then
Code:
If Cells(i, 1).Interior.Color = 65535

to
Code:
If Cells(i, 1).Interior.Color <> 0
 
Upvote 0
Sorry, try
Code:
If Cells(i, 1).Interior.ColorIndex <> 0
 
Upvote 0
Is there any data in column "A" of the "Current" workbook
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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