+ Reply to Thread
Results 1 to 9 of 9

Lots of controls on userforms

Hybrid View

  1. #1
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Lots of controls on userforms

    I'm not really sure where to put this, forum wise, so I'll stick it here. I was just reading this thread http://www.excelforum.com/excel-prog...een-saved.html whete excel crashes when referencing a huge amount of controls on a page (I didn't know about the issue, but I don't find it particularly surprising), what I do find surprising is that the author alludes to this being a common problem amongst users, and there are follow up comments which appear to support this.

    My question is why is this such a common problem? I can't actually ever foresee a need for 500!!! controls adding to a form at design time - it must be soul destroying to support and create. Does anyone actually have a real life example where this has been the only solution to a problem?
    Last edited by Kyle123; 07-18-2013 at 06:33 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Lots of controls on userforms

    I've never experienced a problem with the no of controls, then again I've never have, and hope I never will, have 500+ controls on a userform.

    Perhaps the common thing is that people aren't designing their userforms too well.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Lots of controls on userforms

    hehe me too, I can see the requirement for a lotof controls (an example being the fancy list box I cobbled together someone here a while ago), but I'd never try and do it all at design time.

    I suspect you're right Norie, that the userforms could do with a re-design and anyone with this problem might find it worthwhile investing a little time in learning event handling classes.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Lots of controls on userforms

    but the author provides no evidence for his statement and there are only 3 follow up comments-I would be surprised if this were a common problem in any sense in which I might use that word ;-)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Lots of controls on userforms

    Perhaps there might have been a problem somewhere else in the '81 worksheets, 6 userforms and 10 VBA modules'.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Lots of controls on userforms

    @josie yeah, there is that as well
    @norie, yes, I thought that when I read it too, IME anyone who complains about the maximum size of a module probably needs to look at yhe structure of what they've done and go easy on the copy and paste

  7. #7
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Lots of controls on userforms

    I think that that many controls is way excessive. I agree with Norie in that the userforms are probably not being designed very well. I've (on occasion) seen here and at the code cage threads where people post problems that have userforms with 20+ controls and I even thought those were excessive. I think the most I've ever used was around 10 in one uf.

    I guess a uf can get right out of control if the designer uses "Multipage" tabs and then loads them up with who knows what, making a userform so big that it's hard to maintain.

    We don't use pennies in Canada anymore but that's my 2 cents.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Lots of controls on userforms

    I was watching the dominoes fall - a new record on you tube. Imagine that all the events in all the controls fired successively as you were trying to debug the code
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  9. #9
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Lots of controls on userforms

    Quote Originally Posted by xladept View Post
    I was watching the dominoes fall - a new record on you tube. Imagine that all the events in all the controls fired successively as you were trying to debug the code
    WOW! I seriously was watching lions attacking hyenas on youtube and somehow ended up watching dominoes fall as well.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lots of graphs, lots of text boxes needed
    By sarasbluegroove in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2011, 09:11 AM
  2. Controls in Worksheet vs on UserForms
    By LATrojan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2009, 01:18 PM
  3. Restore VB UserForms Toolbox to defult controls
    By nn9955 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2009, 08:28 PM
  4. [SOLVED] Can I line up lots of controls on a sheet at once?
    By Robert Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2005, 06:05 PM
  5. Evaluating Controls on UserForms
    By MWE in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2005, 12:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1