This is a very interesting "stress test" of the Mac office userforms. The
maximum number of controls I placed and all with macros tied to each of them,
and the form still remained stable was about 750.
The issue here is not whether there are limitations. With 900 controls on
the same form, I think your work will be like drawing a picture on a piece of
rice. The present Mac Office VBA is not stable enough to handle that
complexity. Your VBA Project will crash at any time on any user's machine,
randomly. Even if you're sure that you programmed perfectly, your application
will still crash for no reason.
My suggest is to re-design your userform and overall work flow of your VBA
application, instead of finding out ways to break through the limit.
Usability and stability should always be of top priority.
Regards,
Edwin Tam
support@vonixx.com
http://www.vonixx.com
> I am using Excel X for Mac on a G3 system 10.
>
[quoted text clipped - 12 lines]
>
> Martin
I use the application program for preparing business quotations. If I buy a
new machine and am able to offer additional processes then I need to extend
my program. I add a page to a multipage, add appropriate controls to the new
page, write code and thus my program is suitable extended.
I have been using this program for sometime and hove not experienced any
problems with stability. Although, there are 900 controls on the Userform, I
endeavour to write code which is simple and concise. Many of the controls
are labels and do not have macros tied to them.
In design mode, I am not able to add the 901st control. I select the
appropriate control in the toolbox and position the mouse cusor on the
Userform but no control is placed.
Since my first posting to this newsgroup about this matter, I have
transferred the program to another computer with more available memory but
to no avail. I think that 900 must be a set limit.
I can place additional controls on the Userform through the VBA with "Add"
method but obviously this is less simple and requires additional code.
Regards,
Martin
> This is a very interesting "stress test" of the Mac office userforms. The
> maximum number of controls I placed and all with macros tied to each of them,
[quoted text clipped - 32 lines]
>>
>> Martin
JE McGimpsey - 23 Feb 2006 17:30 GMT
> In design mode, I am not able to add the 901st control. I select the
> appropriate control in the toolbox and position the mouse cusor on the
[quoted text clipped - 6 lines]
> I can place additional controls on the Userform through the VBA with "Add"
> method but obviously this is less simple and requires additional code.
I can't speak to any limits, and I'm certainly surprised that the
controls can be added via VBA but not via the VBE - perhaps a 'Softie
will see this and post here...
Frankly, I can't imagine using 900 controls on a userform. If it works
for you, that's great, of course, but I would find it a maintenance
nightmare.
One technique I've used is to load multipages in real-time. I typically
use a (very) hidden sheet with labels and lists. When a page loads, I
load the labels, dropdowns, button captions, etc. Controls are re-used,
and provide a consistent interface.