gmayor :

I looked at a similar macro (as yours) but if you are running the macro from a separate workbook, then the "activewindow" would be that excel workbook and not Outlook.

How would you get vba to recogize Outlook as the active window ?