I'd like to use my 'Drag and Drop' code in a class module so that it can be dynamic. (I do not want to have to recreate the code for every new image).
This code is in a class module:
This Code is in a normal module.
And the code is called here when the Userform is opened initially:
I get an error saying "Variable not defined". 'Move Me' is highlighted and I assume the public variable is not transferring to the sub? Any help here? Thanks! (btw, the code works great in the userform without the class module, so I assume it is the rules of a class module?)
Bookmarks