tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
I use the following code to force Excel to open a new session every time it's run:
Why is it when I open my workbook, it's Read-Only, then after about 5 secs, a message pops up stating the file is now available for editing?
Thanks
Code:
Sub Workbook_Open()
Dim oXL As Excel.Application
If Workbooks.Count > 1 Then
Set oXL = CreateObject("Excel.Application")
oXL.Visible = True
oXL.Workbooks.Open ThisWorkbook.FullName
AppActivate oXL.Caption
ThisWorkbook.Close False
End If
End Sub
Why is it when I open my workbook, it's Read-Only, then after about 5 secs, a message pops up stating the file is now available for editing?
Thanks