+ Reply to Thread
Results 1 to 7 of 7

Help deleting populated cells when starting new search

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Help deleting populated cells when starting new search

    Hi guys

    After having some excellent help from you guys i need to complete this code to work just how i need.

    I have attached the sample file where i introduce a ref. number and select a name in the drop box and then the code apply a autofilter to search for those data and puts it in "N10" and "O10". Then i have a button that separates that data by periods of time starting in "R2".

    What i need is to when i introduce again a new ref. number for a new search that the values that were separated in periods be deleted, so then it can be populated with the values of the new search.

    Thanks in advance.

    Sample Test.xls
    Last edited by bazofio; 12-20-2014 at 03:48 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Help to finish this code

    Title changed
    Last edited by Pepe Le Mokko; 12-21-2014 at 06:52 AM.

  3. #3
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Help to finish this code

    Sorry
    I have edited the title.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Help deleting populated cells when starting new search

    Hi bazofio,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Help deleting populated cells when starting new search

    Hi xladept

    Its working great, many thanks.
    Just one question, if in the future i have a larger database that retrieves me a lot more of data and periods, is your code going to work the same way that its now? I mean if i have 10 ou 20 periods does it clear all does data when making a new search?

    Thanks once again ;-)

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Help deleting populated cells when starting new search

    Hi Bazofio,

    Thanks for the rep - the amount of records over there shouldn't matter - and you're welcome!

  7. #7
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: Help deleting populated cells when starting new search

    Ok.
    Thanks once again xladept.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trying to finish a VBA code to copy cells from multiple workbooks and worksheets
    By sweetnasty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2014, 11:56 PM
  2. How can i finish my sheet?
    By Adam Schaefer in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-17-2013, 06:07 PM
  3. Replies: 5
    Last Post: 06-30-2011, 03:26 PM
  4. Almost done need help to finish
    By joesport5 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2010, 11:14 PM

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