Pyrgos
New Member
- Joined
- Feb 22, 2012
- Messages
- 30
Hello there,
I have the following code written up in a userform:
For several reasons, I need this file to be shared.
The issue is that, when the file is shared, it prompts me with the question about re-opening the file all the same. If I disallow multi-user changes, then the file opens (or not) as expected.
Is anyone aware of way to solve this?
Many thanks in advance.
I have the following code written up in a userform:
Code:
Private Sub UserForm_Initialize()
Const MasterData As String = "MASTER Data.xlsx"
Dim AsNames As Variant
Dim Counter As Long
'CHECK IF FILE IS ALREADY OPEN OR NOT, IsFileOpen is Function that returns True or False
If Not IsFileOpen("C:\General\2013 Master Folder\" & MasterData) Then
Workbooks.Open FileName:="W:\General\2013 Master Folder\" & MasterData, ReadOnly:=True 'Open Workbook
End If
and so on...
For several reasons, I need this file to be shared.
The issue is that, when the file is shared, it prompts me with the question about re-opening the file all the same. If I disallow multi-user changes, then the file opens (or not) as expected.
Is anyone aware of way to solve this?
Many thanks in advance.