Remove protected view from Excel sheet opened programmatically in Access

后端 未结 4 1728
庸人自扰
庸人自扰 2020-12-19 22:02

I have a spreadsheet I open programmatically using the VBA in Access:

Set xl = CreateObject(\"Excel.Application\")
With xl
    Call RunASCFormatting(xl, wb,          


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 22:22

    You can try turning off protected view settings in the Trust Center

    http://office.microsoft.com/en-us/excel-help/what-is-protected-view-HA010355931.aspx#BM5

    http://www.howtogeek.com/60310/enable-editing-for-all-office-2010-documents-by-disabling-protected-view/

    This may be harmful.

    Additionally you should set trusted locations.

提交回复
热议问题