- Local time
- Today, 15:11
- Joined
- Oct 29, 2018
- Messages
- 21,358
@isladogs If the startup form uses vba and hasn't been trusted, I think you will only see the autoexec macro fires.I was also surprised to see that the startup form loaded first. I modified your code to use an event procedure instead of an embedded macro. Same result. Normally you would either use start up code in an autoexec macro OR in a startup form, not both!
Autoexec is useful where you need to ensure 'safe' code runs even if an application is opened when it hasn't been trusted