Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: VB to Reset userform to blanks

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    88
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Custom form called by a command button on sheet. After form is sucessfully called, filled out and submitted the data adds to my list. The next time the form is called it is prefilled out with the values of the last time it was used. I need the form to be blank each time is it called.. I assume I can put a "reset" statement before the UserForm1.Hide at the end of the form but I dunno the syntax.. THANKS!

  2. #2
    MrExcel MVP Mark O'Brien's Avatar
    Join Date
    Feb 2002
    Location
    Columbus, OH, USA
    Posts
    3,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-06 14:28, keith wrote:
    Custom form called by a command button on sheet. After form is sucessfully called, filled out and submitted the data adds to my list. The next time the form is called it is prefilled out with the values of the last time it was used. I need the form to be blank each time is it called.. I assume I can put a "reset" statement before the UserForm1.Hide at the end of the form but I dunno the syntax.. THANKS!
    Try using:


    Unload Userform1


    This destroys the form instead of just hiding it. This will reset the form.

    Cheers

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Posts
    88
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    perfect thanks..

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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