Context: I have been creating a dashboard to show a summary of various other workbooks. To do this I have setup data connections, which at the beginning of my macro are all refreshed using, Refresh All.
The issue: If one or more of the workbooks, for which the data on my spreadsheet is refreshing from, are open by another user on my work computer system, then workbook is opened up as a 'read only' version which then stops the macro as it becomes the active workbook.
My question: I am aware that i might be able to get around this by having the macro close the workbook as soon as it opens but i want to know if there is a way to stop the workbook opening in the first place, if other users are using the workbooks that the macro is trying to refresh?
The issue: If one or more of the workbooks, for which the data on my spreadsheet is refreshing from, are open by another user on my work computer system, then workbook is opened up as a 'read only' version which then stops the macro as it becomes the active workbook.
My question: I am aware that i might be able to get around this by having the macro close the workbook as soon as it opens but i want to know if there is a way to stop the workbook opening in the first place, if other users are using the workbooks that the macro is trying to refresh?