Forum Discussion
Rmccowan
Aug 12, 2021Copper Contributor
Enable/disable the "Always use these values regardless of sign in to Office" Option with macro
I'm trying to develop a macro that will modify the User name and enable/disable the "Always use these values regardless of sign in to Office" option from the Word Options > General > Personalize your copy of Microsoft Office settings. I've been able to get the user name to adjust correctly, but can't figure out what the variable is for the "Always use these values regardless of sign in to Office" option to be enabled/disabled. Does anyone know what that variable is?
- Emad_AT2Copper Contributor
- RmccowanCopper ContributorI finally found it.
https://docs.microsoft.com/en-us/office/vba/api/word.options.uselocaluserinfo
Options.UseLocalUserInfo = True
Options.UseLocalUserInfo = False