I am trying to open an Excel workbook in edit mode from my company's SharePoint site through a VBA macro from Word. I am able to open the workbook but it always opens in read-only mode with no way to even enter edit mode. Weird thing is that the ribbon that usually allows me to enter edit mode in such cases does not appear at all.
I tried adding ActiveWorkbook.LockServerFile to the created object (returns an error) and to the workbook I'm trying to open and it did not change a thing.
I also tried opening it using :
Workbooks.Open(Filename:="\\filepath\file.xlsm", UpdateLinks:=False, ReadOnly:=True)
, also did not help. Argument False
also does not work.
I have a user form in a Word document that automatically fills input data into necessary places in the document, calculates payments and saves it as pdf. Afterwards I want to add a record to tot he bottom of the Excel file I use to keep track of the generated documents. So basically I want to open the Excel workbook and add a new line after the last row based on the data I input to the Word's userform.
No matter what I do, it always opens in read-only mode with no way to even manually enter edit mode.
I suspect that it's an issue with my company's trust center settings as everything is blocked and grayed out and I can't mess with those to see if it's the issue. Is that possible?
ReadOnly:=True
but this means that you want to open the workbook in Read Only. Is that a typo ? - TourEiffel