Hello good people,
I had a problem that I found the answer for, but it says "This code needs to be posted in a class module and an instance of the class needs to be created before it will work".
I am very familiar with "Modules" but never used Class Modules before, and can't seem to be able to figure out how to get this thing to run. Below is the code I'm using, and some of my random attempts to get it to run. There is this (A) and (WorkbookBeforeClose), and in "ThisWorkbook" another (BeforeClose), it's confusing me.
Usage of the code; I have a userform that when displayed, hides the window/application based on whether other Workbooks are open, this code is to resolve when closing other books both try to close.
Your help is very much appreciated
I had a problem that I found the answer for, but it says "This code needs to be posted in a class module and an instance of the class needs to be created before it will work".
I am very familiar with "Modules" but never used Class Modules before, and can't seem to be able to figure out how to get this thing to run. Below is the code I'm using, and some of my random attempts to get it to run. There is this (A) and (WorkbookBeforeClose), and in "ThisWorkbook" another (BeforeClose), it's confusing me.
Usage of the code; I have a userform that when displayed, hides the window/application based on whether other Workbooks are open, this code is to resolve when closing other books both try to close.
Your help is very much appreciated

