Not sure why it works from a class and not from the code module.
@Erel Just an extra piece of info, not at all urgent, and only if it intrigues you enough.
I had the same issue, and moved the call to a class, and it went away. I then created a new empty class, Dimmed and initialized that and called the sub from the original code module, and still no error.
In fact, if I Dim and Initialize the empty class in the called sub in the code module, the error goes away too. It appears it's not the fact that the sub is in a class as opposed to a code module, but that a class has been initialized.
Run the app and click the first last button, the error will appear.
If you would like to check it, remove the comments from lines 71/72 of Main and the error will disappear. (Needs the jCellFactoryHelper Lib)