> >This option was added in xl2k. You don't get a choice in xl97.
>
[quoted text clipped - 26 lines]
> --
> The Zero ST
>I'm not sure what you're doing, but maybe you could create a public variable and
>determine if the next userform should be shown based on what happened in the
[quoted text clipped - 33 lines]
>But if you're showing lots of userforms, have you thought of using one userform
>with multipages? Kind of like what you see in the Tools|Options dialog.
Thanks for the info...
Basically I have coded a load of forms that inputs job start and
finish times into a sheet. Pretty simple concept and I have got it all
to work apart from this out of stack space error.
There are forms like Workers (with a list of name buttons), Start work
form (with work amount etc on it), finish work form with a big red
stop button on it! and a time lost form where users input time lost
for the job.
So the forms go like this..
Workers>Start Work>Workers>Finish Work>time lost>Workers and so on...
So at the end of each form (on commandbutton click) it says something
like
me.hide
*nextform*.show
end sub
It works fine but looks like each of these is staying in call stack
and eventually after a few hours of use it is causing an out of stack
space error. The only way to get around this error thus far has been
to exit "X" the forms and restart them (thus clearing the stack- I
assume)...
The MS supportsite said a way to get around this is to use show 0 or
show Vbmodeless (neither of which work with Excel 97).
--
The Zero ST
Dave Peterson - 25 Apr 2007 22:25 GMT
I still like the idea of using multipages -- in fact, you could make it work
like a wizard (think data|text to columns) -- so that you only enable then next
button when all the input on that page is filled out. Then the next page is
shown and the previous page is hidden.
But I guess I don't understand why the previous suggestion didn't work.
Just a bunch of code in a general module that shows one form after another. If
you don't need to check to see if you should continue, then you don't need that
"oktocontinue" stuff.
> >I'm not sure what you're doing, but maybe you could create a public variable and
> >determine if the next userform should be shown based on what happened in the
[quoted text clipped - 68 lines]
> --
> The Zero ST

Signature
Dave Peterson