+ Reply to Thread
Results 1 to 3 of 3

Refresh Combobox to reflect new data

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Refresh Combobox to reflect new data

    Hi ...

    I have a combobox on a Userform.

    The values feed from a series of rows in a spreadsheet dependent on certain criteria.

    I can display the correct data, I have the functionality to edit ths data and save it back to the orginal cells, and I can create new records which I can successfully add to a new blank row.

    All the above is in perfect working order. (I my opinion!).

    However, when I click on the combobox again it fails to pick up the new record, despite my code on the change looking at the full range of cells each time.

    Does anybody have any idea how this new data can instantly appear in the combox?

    Obviously if I exit the form then reload I can see the new data, but I can't make it occur instantly even though my code searches all records.

    Cheers ...

    punter
    Last edited by punter1000; 02-14-2011 at 01:11 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Refresh Combobox to reflect new data

    Hi punter1000
    Welcome to the forum
    What code do you use the populate the combox box on load,
    you could add it to a "click event" for the combobox
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    02-09-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Refresh Combobox to reflect new data

    Thanks Pike,

    yes, as something as simple as that worked fine!

    I actually thought the coding was similar enough to do the same thing between them, but there were subtle differences that didn't allow the full refresh (shows you how tired I am!).

    As a hint to anybody else now or in the future reading this post - clear the values from the combobox first before loading or else you get double entries (in my case anyway!).

    Thanks once again Pike ... most appreciated!

    punter

+ 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