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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,818
Messages
6,181,152
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