Hi everyone, the purpose of my macro is to add fixtures based on the type of workpiece and the surface of the workpice. There seems to be an error when it goes to userform2 where there are options to choose the baseplates. The error is seen in the screenshot below. I have attached the necessary parts and code for this. Do let me know why this is happening, appreciate all the help I can get
Hi Binish
One of the objects is Nothing - it is not Set.
This is very common when you are writing. It means you forgot to set (or check) an object.
Step through your code to see where it is happening and make sure the object is set before you try and call a method or property.
You cannot assume that methods always return a valid object - they could be null.
You may have forgotten to new up.