Hey all VBA geniusses,
I have a hopefully simple question I can't seem to work.
I have on sharepoint two different excel files. Because of the obvious user edit limitations in a file on SharePoint I have created a "data" file and a "input" file, where the user use the input file which automatically inputs the data into the data file. This will do so the data file is not being used for other than the time than it takes to open-save input-save-close.
To open, save and close the workbook i use:
There is alot of code inbetween that has no influence of the above afaik.
The opening of the documents works fine, it is the save that is the problematic one. No matter how i present the code it always saves the file local instead of saving the file at its destination, which is SharePoint.
Is there something I'm missing? ActiveWorkbook must the right definition as it is in fact opened and the "active" workbook?
I have a hopefully simple question I can't seem to work.
I have on sharepoint two different excel files. Because of the obvious user edit limitations in a file on SharePoint I have created a "data" file and a "input" file, where the user use the input file which automatically inputs the data into the data file. This will do so the data file is not being used for other than the time than it takes to open-save input-save-close.
To open, save and close the workbook i use:
Code:
Workbooks.Open ("LINK TO SHAREPOINT.xlsm")
ActiveWorkbook.Save
ActiveWorkbook.Close
There is alot of code inbetween that has no influence of the above afaik.
The opening of the documents works fine, it is the save that is the problematic one. No matter how i present the code it always saves the file local instead of saving the file at its destination, which is SharePoint.
Is there something I'm missing? ActiveWorkbook must the right definition as it is in fact opened and the "active" workbook?