You may be able to use CallByName, but I believe the function that you are calling needs to be in a class or userForm module for this.