ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto-generate controls on form (https://www.excelbanter.com/excel-programming/306310-auto-generate-controls-form.html)

JJ[_5_]

Auto-generate controls on form
 
How do I write code to put a control (like a textbox) on a
form?

I have a list of fields and would like to create textboxes
on a form for each field - like the wizard.

Any sample code on how to get the form object and how to
create a textbox is appreciated.

Tom Ogilvy

Auto-generate controls on form
 
See John Walkenbach's site for an example:

http://j-walk.com/ss/excel/tips/tip76.htm
Creating a UserForm Programmatically

--
Regards,
Tom Ogilvy


"JJ" wrote in message
...
How do I write code to put a control (like a textbox) on a
form?

I have a list of fields and would like to create textboxes
on a form for each field - like the wizard.

Any sample code on how to get the form object and how to
create a textbox is appreciated.





All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com