nomissmith
New Member
- Joined
- Mar 3, 2016
- Messages
- 2
I have two excel spreadsheets that are linked to show data from one in the other. Due to the fact that I am using COUNTIFS, SUMIFS and a MAX(IF) in order to check multiple criteria the worksheet that displays the linked data requires the spreadsheet containing the data to be opened to update. The file does not need to stay open so I have put a macro in to open, save and close the required file. Unfortunately it appears that if the file is already open it will save the opened file to another location and this changes all the data links on the second spreadsheet.
Is there a way of checking whether the file is open and doing the following depending on found condition;
1. If open - display a message saying unable to update as file already open.
2. If closed - complete open, save, close macro
I currently have the macro linked to a button.
Is there a way of checking whether the file is open and doing the following depending on found condition;
1. If open - display a message saying unable to update as file already open.
2. If closed - complete open, save, close macro
I currently have the macro linked to a button.