Hello: I see this question has been asked, but not yet answered.
I am trying to write code to open a file on our sharepoint site, but I can't seem to get the code to work.
Here is the code I am using:
The error I get is Run-time Error '1004'
Method 'LockServerFile' of object' _Workbook' failed
Any assistance in helping me figure out how to get this to work would be appreciated.
I am trying to write code to open a file on our sharepoint site, but I can't seem to get the code to work.
Here is the code I am using:
VBA Code:
Private Sub UpdateFile(filepath As String)
Filename:="File Path/Report Name.xlsm"
ActiveWorkbook.LockServerFile 'Edit Mode
End Sub
The error I get is Run-time Error '1004'
Method 'LockServerFile' of object' _Workbook' failed
Any assistance in helping me figure out how to get this to work would be appreciated.