I created a user form that asks the user to fill in 3 parameters (textbox) + having OK button.
I also have a sub procedure,
public sub Analyze (actionName as String, endStr as String, startStr as String)
which I call with different parameters.
I wish that upon clicking on Ok button on my user form, a new button will be created (this can easily be done by activesheet.buttons.add
) and will be assigned to a new macro - the Analyze procedure with the parameters from the user form --> so i need to create each time a new sub calling Analyze sub with different parameters.
Is it possible? how can I do that?