LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Creating a Userform using code

It would be easier to create the userform manually and arrange the maximum
number of textboxes you would support. then, in reaction to the number
entered by the user in the input box, make the number you want to use
visible = True and the remainder visible = False in the Initialize Event of
the userform.

For your suggested approach, see John Walkenbach's sample code:

http://j-walk.com/ss/excel/tips/tip76.htm
Create a Userform Programmatically

--
Regards,
Tom Ogilvy

"trini" wrote in message
...
Hi everyone,
Can anyone tell me if it is possible and how I could create a userform

using
code. My idea is that I use an inputbox to find out how many textboxes the
user wants in their userform and then the userform is created. Any help

would
be appreciated.
Thanks
Trini



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a lookup in a userform BJ&theBear Excel Discussion (Misc queries) 4 March 17th 10 06:51 PM
Creating Userform Controls on Frame David Myle Excel Programming 2 February 14th 05 02:51 PM
Creating Temporary Userform with checkboxes [email protected] Excel Programming 1 February 13th 05 01:39 PM
Creating and controlling objects in a UserForm Stephen Knapp Excel Programming 0 November 24th 04 03:37 PM
Need help creating a userform with optionbuttons TB[_2_] Excel Programming 2 July 21st 03 02:16 PM


All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"