Can you share the PDI file or the complete VBA code? On what line does the error appear when you debug?
Perhaps Ellipse12 needs a qualifier such as ThisDisplay.Ellipse12 if Main() is defined in another Module (not ThisDisplay). If you can share the PDI sample or complete VBA, it would help us provide more specific recommendations.
You might need to enable scripting on the Ellipse you created.