VBA Open Excel Sheet in email attachment daily

PaulOPTC

New Member
Joined
Jan 13, 2022
Messages
48
Office Version
  1. 365
Platform
  1. Windows
Hey!

There seem to be quite a few topics on this, but I don't know why I cant get it working, I don't seem to understand something.



I need a code to open a particular excel file that gets emailed me and my boss automatically daily.

This will be implemented into a button that we would click once a day to update the profit and loss on our excel sheet.

I need the code to open

outlook
find the most recent email from "quickbooks@notification.intuit.com"
download the excel sheet called "Profit_and_Loss_by_Customer.xls"
the download should probably be in a temp folder, and then deleted after it closes
and then open the spreadseet.

I already made a macro for everything else.

I saw this also, to do it from outlook, but I don't think that would work out, because I would have to put it on multi computers?



Any help that you could give me would be appreciated! Thank you!
 

Excel Facts

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

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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