I've tried to scrabble together several other pieces of VBA to achieve this, but am a beginner with the language so have had no luck. I would like to use VBA to achieve the following:
- Run the below on load:
- Check whether another workbook is currently open. This workbook is specified by a named range (input_sheet_location) which contains the entire network location of said workbook.
- If it is not open, ask the user whether it is okay to open it.
- If that load fails (i.e. it can't be found/is restricted/the named range is empty), exit the sub with an error message and allow the user to continue.
- If it is open, proceed without prompt.
I am 99% sure all of these things are achievable; I simply do not have the knowhow required to string them all together. As such, the only piece of the puzzle I'm truly lacking is that second bullet point above; anything else, I can (hopefully) figure out.
Thanks for your time!