简体   繁体   中英

Altering default open all files in folder option

Excel has an option within Excel/File/Options/Advanced which allows a user to have files within a folder open on startup. This is located under the general tab in Advanced which is called " At startup, open all files in: ".

  • Could this potentially be manipulated through VBA?

I've done some research but found nothing on this topic. I'd like to create a simple sub that sets this to C:\\test

Sub SetFolder()

'Do something to set option to ("C:\test")

End Sub

The property you're after is Application.AltStartupPath

Sub SetFolder()
    Application.AltStartupPath = "C:\test\"
End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM