misiek5510
New Member
- Joined
- May 25, 2021
- Messages
- 38
- Office Version
- 2016
- Platform
- Windows
- Mobile
What I'm trying to do is to detect if excel file is already open and if it is then to open specific tab and if its not open to open it from same folder and then open specific tab.
My current code opens the file I need and selects the sheet I wanted however if the file is already open then it asks if I want to reopen it.
Sub test()
Workbooks.Open (ThisWorkbook.Path & "\test.xlsm")
Sheets("testing").Select
End Sub
My current code opens the file I need and selects the sheet I wanted however if the file is already open then it asks if I want to reopen it.
Sub test()
Workbooks.Open (ThisWorkbook.Path & "\test.xlsm")
Sheets("testing").Select
End Sub