Marshall Brooks
Member
- Local time
- Yesterday, 22:21
- Joined
- Feb 28, 2023
- Messages
- 696
I thought this would be a simple question - it appears not to be. We have some users running Office M365 and some using Office 2016.
Recently my nightly Excel reports stopped being created unattended b/c Excel said they needed a security label. I found a fix for that here: https://stackoverflow.com/questions/74712674/add-sensitivity-label, and our E-mails will need a security label - I found a fix for that (Sendkeys - crude) here: https://stackoverflow.com/questions/72230105/changing-sensitivitylabel-in-outlook-365-email-with-vba
But I would only like to use the new code if on a machine with M365. (Technically, I need to know if using Excel M365 or Outlook M365, not Access M365, but hopefully the same code will work for both.) I'm not sure if you can run Access M365 and Outlook 2016, but none of our users will be doing that.
I found Colin's program here https://www.isladogs.co.uk/access-office365-win-check/index.html#DL, which works, but I don't know HOW it determines if it is M365.
There is code here http://www.vbaexpress.com/forum/sho...-365-subscription-or-purchased-Office-version which I haven't tested, but some replies implied it did not work.
As a crude workaround, some of our users run Access M365 from the Desktop and others run it under Access from a shared drive using Access 2016 under Citrix. So I could simply check if the Access Path is on the shared drive, but I'd prefer something more definitive.
All help appreciated.
Recently my nightly Excel reports stopped being created unattended b/c Excel said they needed a security label. I found a fix for that here: https://stackoverflow.com/questions/74712674/add-sensitivity-label, and our E-mails will need a security label - I found a fix for that (Sendkeys - crude) here: https://stackoverflow.com/questions/72230105/changing-sensitivitylabel-in-outlook-365-email-with-vba
But I would only like to use the new code if on a machine with M365. (Technically, I need to know if using Excel M365 or Outlook M365, not Access M365, but hopefully the same code will work for both.) I'm not sure if you can run Access M365 and Outlook 2016, but none of our users will be doing that.
I found Colin's program here https://www.isladogs.co.uk/access-office365-win-check/index.html#DL, which works, but I don't know HOW it determines if it is M365.
There is code here http://www.vbaexpress.com/forum/sho...-365-subscription-or-purchased-Office-version which I haven't tested, but some replies implied it did not work.
As a crude workaround, some of our users run Access M365 from the Desktop and others run it under Access from a shared drive using Access 2016 under Citrix. So I could simply check if the Access Path is on the shared drive, but I'd prefer something more definitive.
All help appreciated.