Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save As and Security

Status
Not open for further replies.

JDU

Technical User
Dec 23, 2002
182
US
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.
 
Are you sure about this because I can open files that do not have macro's with a security of high and I can open files with macro's with a security of medium with the dialog box that asks for disabling/enabling macros.
Thanks.
 
If you do Tools/Macro/Security and change you setting to HIGH.

Then try to open one of those workbooks you previously opened with macros enabled.

The only way that you could, is if you had authorized that certificate as a trusted source some time in the past.

Skip,
Skip@TheOfficeExperts.com
 
I'm sure that the security setting is application level rather than being set for each wokbook as SkipVought said so I don't think you can specify for each w/b (IMHO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top