+ Reply to Thread
Results 1 to 6 of 6

Is it possible to have a user form retain data for two of the combo boxes for the entry?

  1. #1
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Is it possible to have a user form retain data for two of the combo boxes for the entry?

    The user form populates several different sheets in the workbook. Two of the boxes (one text and one combo) will be the same for all of the days entry (location and date). All of the other data will be different. I would like to know if it is possible for the data in those two boxes to remain so the user does not have to retype or select them for each person he is entering.
    Juli

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Is it possible to have a user form retain data for two of the combo boxes for the entr

    Maybe something like:

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: Is it possible to have a user form retain data for two of the combo boxes for the entr

    abousetta,
    Thank you for the fast response. I can see that I was not at all clear in my post. Your code works great if the data doesn't ever change (which is how my post sounded) but what I was trying to say is that when the user opens the workbook to enter data for that entry session the date and location will be the same. They will have to enter the data once, but then for all the subsequent forms they complete during that session the date and location will be the same. I was trying to come up with a way to avoid having them have to enter that information over and over for each entry since it is the same for the whole entry session.
    Juli

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Is it possible to have a user form retain data for two of the combo boxes for the entr

    Hi Juli,

    Please Login or Register  to view this content.
    This will keep the data until new data is written in these two fields.

    If you want a certain data to allows be presented you can set it up as a constant.

    If you want it to remain even if the user closes the userform then use

    Please Login or Register  to view this content.
    instead of

    Please Login or Register  to view this content.
    If you want it to remain between sessions (after you close the workbook) then save the input in a hidden sheet.

    Hope this helps.

    abousetta

  5. #5
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: Is it possible to have a user form retain data for two of the combo boxes for the entr

    Abousetta,
    That works perfectly. Thank You very much for the help.
    Juli

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Is it possible to have a user form retain data for two of the combo boxes for the entr

    Thanks for the feedback.

    Glad it all worked out.

    Good luck.

    abousetta

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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