Hi EXP88,
The boolean is so the scrollbars dont trigger each other in a feedback loop of value changes.
Don't think the vbext_ct_MSForm template is Modeless compatible or have a modal property to set and that is why it errors. Once the vbext_ct_MSForm useformer is created/saved/unloaded it will be shown in the modeless mode when opened again. It is a limitation with the old vbext_ct_MSForm pre-showmodal property which wasn't updated.
or you could try an export and import of the form.frm ...or just make the userform .. or just import a premade userform.
Why do you need to programmatically generate the userform?
Bookmarks