View Single Post
 
Old 08-13-2019, 08:59 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Quote:
You put me on the right track: I changed
Set olApp = OutlookApp ()
into
Set olApp = GetObject(, "Outlook.Application")
Except that isn't the right track. You should have copied the complete function from the web site and called it from the macro as I indicated. This then ensures that Outlook is always opened or accessed correctly.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote