I do not think Macros are capable of doing this. I think it is time for you to move away from Macros ;)
Here is how you create a VBA. Click on the Form Design, then find the Form Current Event in the Event Tab. When you click the three dots (...), it will pop up with the option Choose Builder...