I am creating an userform at runtime and adding a button on it at runtime. Now
if i click the button I want to have the userform resized to a different size. I
tried to add to set the form's width to a different value in the button_click
event which I am writing at runtime into the form's codemodule. But the event
doesn't recognize the form object and fails. I have declared the form object as
a global object (vbcomponent).
Is there any workaround for this?