Excel to dictate Outlook to close open email window

Julesdude

Board Regular
Joined
Jan 24, 2010
Messages
197
Hi there,

I'm trying to get Excel to dictate Outlook to close an Outlook email window. Basically I have a macro in a workbook that is stored centrally (a) that is called from an Excel workbook email attachment (b) that the user opens. The email attachment (b) is a completed form and the info is ripped from it and put into A - a central database (where the running macro is).

I'd like to 'clean up' after this data has been extracted. I've already closed the form workbook (b) from the macro in workbook A. But how can I close from Excel the email window displaying the email that holds the attachment (b)?

Just a footnote - I was hoping the macro would need to cycle through open Outlook windows to check for the title of the window which is basically the subject. If it matches string A then close it.
 

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"

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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