I have an Excel file of approximately 100 MB in size that I open with this code that runs when the UserForm button is clicked:
Public Sub SelectButton_Click()
fNameAndPath = Application.GetOpenFilename(Title:="Please Select a Report")
If fNameAndPath = False Then Exit Sub
End Sub
Since this file is so large, it takes some time to verify it, and this confirmation is about half the time that my entire macro completes (I work in Excel 2013, and this file does not open from a network or shared drive). If I open the file manually, I get the opportunity to skip verification after three seconds of verification. The problem is that it opens the file in Protected View, where I cannot work with it.
Using VBA, is there a way to “skip skip” this reusable check while avoiding the Protected View?
When Excel is completely closed, this warning / landmark appears in the lower left corner of the splash screen:

When Excel is already open, this warning / guide will appear in the lower right corner:

source
share