There are a number of ways.
The "easiest" is.. To use a "global" variable... Defing the variable in the
definitions part of a module as public.
Public variable are generally "frowned upon" though.
How are your userforms set up? Do you have mre than one? What are you
actually trying to do?
You could put the code you want in a subroutine in Module1 and then call it
depending on the option chosen in the events that happen when closing the
form... Efectively moving what happens to be triggered before the form
actually black holes.