I am using the following code to save a file automatically through a macro.
If bExcelFileWithOutSameName = True Then
xlsheet.SaveAs Path & "\" & strFileName & ".xls"
End If
However when I open the newly saved file, it opens with a security setting of Medium since the security setting of the file that contains the macro that I use to create/save this new file is medium. How can I save it with a security setting of high and thus not get the dialog box of disabling, enabling macros.
Thanks.
If bExcelFileWithOutSameName = True Then
xlsheet.SaveAs Path & "\" & strFileName & ".xls"
End If
However when I open the newly saved file, it opens with a security setting of Medium since the security setting of the file that contains the macro that I use to create/save this new file is medium. How can I save it with a security setting of high and thus not get the dialog box of disabling, enabling macros.
Thanks.