+ Reply to Thread
Results 1 to 6 of 6

Refresh UserForm to display data that is linked to combobox selection

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Refresh UserForm to display data that is linked to combobox selection

    I've created a UserForm that will display historical data based on the month that I select from a ComboBox. Within the UserForm, there are also input boxes where, using the displayed information to help me make an accurate decision, I can enter new data that will go into another database within the workbook.

    How do I make my UserForm "refresh", once I select the month, to display the correlating information from my workbook database?

    I think a CommandButton might be a good addition but I don't know how to link the two objects.

    (By the way, I just started learning VBA last week so I may not understand the most technical terminology.)

    Thanks for the help!

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Refresh UserForm to display data that is linked to combobox selection

    Consider to attache example workbook with dummy data for us.
    For now is difficult to imagine what should be filtered. Whe have to see data structure, then we will try to help You.
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Refresh UserForm to display data that is linked to combobox selection

    maczaq,

    Attached is a simplified example of what I am trying to do.

    After selecting the month in the ComboBox, I want to press refresh and have the current projections be displayed. Then, if I feel that the projections are inaccurate based on the historical sales, I can update them in the UserForm.

    So far my If Then statements haven't worked to pull projections for the selected month. I am also reading up on how to make my "Accept" command button work.

    Let me know if you need more info.

    Thanks.
    Attached Files Attached Files
    Last edited by alter54; 08-14-2012 at 04:43 PM.

  4. #4
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Refresh UserForm to display data that is linked to combobox selection

    a part for get a value from sheet to userform without using "Refresh" button

    copy below code into userform code section (any place)
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Refresh UserForm to display data that is linked to combobox selection

    I tried your code with no luck but I realized that my table is different than the sample I gave you.

    Attached is a new document that more accurately reflects what I am working with.

    Thanks.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-14-2012
    Location
    Utah, United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Refresh UserForm to display data that is linked to combobox selection

    Here is an exact copy of the worksheets I am working with. Hopefully it helps.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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