Change dimension with Macro

Hi I wonder if someone can help me create a macro.

My problem is this would make a window as the image, where I fill up the fields with the measures x and y when you press the OK button is the size as the fields are completed.

thank you

SolidworksParts And Features