Macro to bring all data from a row if today's date

Lbunm

New Member
Joined
Sep 1, 2017
Messages
3
I need a big help on this
I have a spreadsheet called "2017 Funds Journal" and that is where I enter all order for the whole year, another department needs the invoice number and order amount from this spreadsheet so they can upload for invoice processing. Instead of having to update this file for them every day I would like a macro to update that for me.
My workbook:
Transaction date / Payment account / Card Orders / Return / Balance / Order Number

If the transaction date match with today's date and considering that each one of these fields is in a # column, I would like my Macro to bring in a new spreadsheet called "Daily Inv Update" the "Card Orders" Column C and Order Number Column F.
So it will look:
Date: Today () /Order Number / Card Orders /
Date: Today () /Order Number / Card Orders /
Date: Today () /Order Number / Card Orders /

I appreciate any help with this as I am still learning about all of this
Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I would like my Macro to bring in a new spreadsheet called "Daily Inv Update"



If you mean "Daily Inv Update" is just a worksheet name then try the code below...
Code:
Sub Macro4()
    With Sheets("2017 Funds Journal").Range("A1:F" & Sheets("2017 Funds Journal").Range("A" & Rows.Count).End(xlUp).Row)
        .AutoFilter Field:=1, Criteria1:=xlFilterToday, Operator:=xlFilterDynamic
        Intersect(.Offset(1).Resize(.Rows.Count - 1).SpecialCells(xlCellTypeVisible), Sheets("2017 Funds Journal").Range("A:A,C:C,F:F")).Copy Sheets("Daily Inv Update").Range("A1")
        .AutoFilter
    End With
    Sheets("Daily Inv Update").Columns("C:C").Cut
    Sheets("Daily Inv Update").Range("B1").Insert Shift:=xlToRight
End Sub

If not then give both workbook and worksheet names for both files.
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,291
Members
449,498
Latest member
Lee_ray

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