Re: Master reset code -stumped

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You could have some code like the following for each userform

Load UserForm1
UserForm1.cmdReset_Click
Unload UserForm1

but you will need to make the rest button click procedures public.

Unfortunately you cannot use the Userforms collection, as the userforms do
not become part of the collection until they are loaded.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"peter.thompson"
<peter.thompson.218kja_1136589602.0717@xxxxxxxxxxxxxxxxxxxxx> wrote in
message news:peter.thompson.218kja_1136589602.0717@xxxxxxxxxxxxxxxxxxxxxxxx
>
> I have a worksheet with 30 command buttons that open up 30 unique
> UserForms.
>
> Each UserForm has a reset command button that resets all textbox values
> etc. to default settings.
>
> I would like to have a 'Master Reset' command button on the worksheet
> that resets all of the 30 UserForms to their default settings. Given
> that the 'reset' code is different for each UserForm, is there a way do
> accomplish this?
>
> Any assistance much appreciated
>
> Cheers
>
> Peter (new too VBA)
>
>
> --
> peter.thompson
> ------------------------------------------------------------------------
> peter.thompson's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=29686
> View this thread: http://www.excelforum.com/showthread.php?threadid=498898
>


.



Relevant Pages

  • Master reset code -stumped
    ... Each UserForm has a reset command button that resets all textbox values ... I would like to have a 'Master Reset' command button on the worksheet ... that resets all of the 30 UserForms to their default settings. ...
    (microsoft.public.excel.programming)
  • Re: How do I freeze the axes?
    ... But I still have to reset the axes, using the axescommand. ... I'm trying to get them to stay fixed, so they don't have to be reset at all. ... Matlab automatically computes whatever axis settings ...
    (comp.soft-sys.matlab)
  • Re: How do I freeze the axes?
    ... But I still have to reset the axes, using the axescommand. ... I'm trying to get them to stay fixed, so they don't have to be reset at all. ... Matlab automatically computes whatever axis settings ...
    (comp.soft-sys.matlab)
  • Re: URGENT~ Debug the class library in web service
    ... You may want to try to reset Visual Studio 2005 IDE settings by using ... devenv.exe command line switch "/ResetSettings". ...
    (microsoft.public.vsnet.debugging)
  • Ubuntu-desktop defaults
    ... Is it possible to reset the Ubuntu-desktop to the original default ... settings via the command line? ... My tool bar/application/menu panel has vanished. ...
    (Ubuntu)