In this tutorial I will share a VBA Function (User-Defined Function) that can detect whether if a file is currently opened.

VBA Script