+ Reply to Thread
Results 1 to 6 of 6

Quick find in a sheet and table population

  1. #1
    Forum Contributor
    Join Date
    06-15-2007
    Location
    Scotland
    Posts
    142

    Quick find in a sheet and table population

    Hi,
    I am triying to get this sorted out, but I couldn't
    I have two sheets, one is a main sheet where a table has to be populated with values according to a date changed by the user.
    in the second sheet I have the database from where I would like the date to be retrieved

    I made a peace of code, but is too slow

    and also would be nice that when a value is not found set the cell in blank.
    and the table get updated without click the commnadbutton when the date is changed.

    Any help with this will be welcomed
    I attached the file so you can see my mess
    cheers
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello mmf,

    I added the macro below to your workbook, which is attached to this post. It will run automatically when the value in cell "B1" on Main is changed. The command button will also call the same macro. As you can see, this macro is quite a bit more complex than yours. It takes advantage of the Auto-Filter function to sort the data by date.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    06-15-2007
    Location
    Scotland
    Posts
    142
    Many thanks for the code I really appreciate the time.
    here in my computer is not working, I was trying to figure out why it is.
    the autofilter is activate, but do not show any values, so the code can not retrieve any data.
    any clue why that is happening
    cheers

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello mmf,

    Can you post your workbook? I have a look at what's going on. The code should prevent that condition from happening.

  5. #5
    Forum Contributor
    Join Date
    06-15-2007
    Location
    Scotland
    Posts
    142
    Sorry leith, to do not answer early, but god last weeks have been very hetic.
    Please find the workbook that is not working
    Best Regards
    MM
    Attached Files Attached Files

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello mmf,

    The data may not be visible if the auto filter has failed to find a match. On the menu bar, click b]Data, Filter, Show All[/b]. This will restore the list. The macro does this automatically each time it runs, but leaves the filtered results.

    Sincerely,
    Leith Ross

+ 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