VBA Macro link to daily report

Dave Chiskey

New Member
Joined
Apr 7, 2014
Messages
42
Office Version
  1. 2013
Platform
  1. Windows
Dear Forum,

I need a little wisdom here please. I have managed to create a working Marco that filters, formats, deletes etc. a worksheet report.

The Marco name is: Daily_Report_Filter

Each day we need to pull a report, the report data and structure is always the same but the file name changes. For example today's file is named: Daily_Report_2019091712345

What I would like to do, which is where I am struggling, is to have an open blank worksheet with a button containing my macro. When the report is pulled the button can be pressed and the report worksheet gets filtered. I know how to assign the macro to the button but I have no idea how I can make the button filter the daily report worksheet.

Is this possible please? I'm sure it is but I have not been able to find anything that matches in the forum or on the internet.

Kind Regards

Dave.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi Dave,
if I understand your problem correctly: you have a file macro_file.xlsm and somewhere else a daily_report_20190917etc.xlsm ? What you would then probably want in your macro_file workbook is a cell where you can put in the date of the daily report you want to pull, open that file into your macro_file workbook and filter it? If you have some code, please do post it with your answer.
Thanks,
Koen
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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