Dr. Demento
Well-known Member
- Joined
- Nov 2, 2010
- Messages
- 618
- Office Version
- 2019
- 2016
- Platform
- Windows
Using early binding, I have automated a batch of weekly emails; however, since I won't always be the one sending them, I wanted to insert code that would automatically include the sender in the CC line.
I've found the code below online, but all the examples seem to use late binding (or more likely, I'm not understanding how to implement it). I've tried converting to late binding, but I just break my code Fortunately, when I omit the line below, everything works fine. I'm calling this from Excel 2010.
I know next to nothing about the settings, but per Outlook Data File Settings, it's running in Unicode mode against Microsoft Exchange and the Address Book is MAPI.
Any thoughts and good vibes would be most appreciated.
I've found the code below online, but all the examples seem to use late binding (or more likely, I'm not understanding how to implement it). I've tried converting to late binding, but I just break my code Fortunately, when I omit the line below, everything works fine. I'm calling this from Excel 2010.
Code:
with objMail
.CC = objMail.Session.CurrentUser.addressEntry.GetExchangeUser().PrimarySmtpAddress
I know next to nothing about the settings, but per Outlook Data File Settings, it's running in Unicode mode against Microsoft Exchange and the Address Book is MAPI.
Any thoughts and good vibes would be most appreciated.
Last edited: