Typically, there is no security alert when opening a file with macro support using code. The code you're using to open the files should be displayed.
However, if you do see a prompt you can fix that by setting Application.AutomationSecurity to the appropriate value