Hi, I have some code (in Excel) which automates Outlook by displaying an email populated with text for the user to send.
Initially all users were using Office 2007 and I am using late bindingwhich worked fine.![]()
Please Login or Register to view this content.
Since then, some users have upgraded to Office 365 and this code no longer works. It seems to be because outlook is now named in the registry as Outlook.Application.16 with .16 added.
I now need the code to work on both versions and have so far I thought of either:
- a way for GetObject to work with either of these - perhaps a wildcard or something?
- a way to determine whether Office 365 is installed and use the correct name accordingly.
- a way to pull the application name from the registry in order to use the correct one with GetObject
Does anyone have any way to overcome this?
![]()
Bookmarks