Hi Everyone.
I am trying to write a VBA code where the UserForm resizes dynamically depending on values retrieved from cell counts.
I have worked that out but I need to have the CommandButton locked to the lower right-hand corner of the UserForm so that it can easily be clicked once the data input is over.
Since the UserForm resizes itself (it can become really big depending on the values captured) from a minimum of 1 textbox to possibly 15 columns and 50 rows of textboxes, I cannot have it anywhere in the top or bottom centre (please let me know if I am wrong and this is possible).
The most viable option I feel is to stick it in the lower right corner of the UserForm.
It is possible to have it in the upper left corner (it does remain stationary there) but that feels wrong...based on conventional structure.
Please let me know what can be done.
Thanks
I am trying to write a VBA code where the UserForm resizes dynamically depending on values retrieved from cell counts.
I have worked that out but I need to have the CommandButton locked to the lower right-hand corner of the UserForm so that it can easily be clicked once the data input is over.
Since the UserForm resizes itself (it can become really big depending on the values captured) from a minimum of 1 textbox to possibly 15 columns and 50 rows of textboxes, I cannot have it anywhere in the top or bottom centre (please let me know if I am wrong and this is possible).
The most viable option I feel is to stick it in the lower right corner of the UserForm.
It is possible to have it in the upper left corner (it does remain stationary there) but that feels wrong...based on conventional structure.
Please let me know what can be done.
Thanks