+ Reply to Thread
Results 1 to 2 of 2

Clear cell contents based on offset of dropdown selection on another tab.

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    Bakersfield, California
    MS-Off Ver
    Excel 2007
    Posts
    27

    Clear cell contents based on offset of dropdown selection on another tab.

    Ive got this code, which moves the offset of a selection from a cells drop downlist to another tab:

    Please Login or Register  to view this content.
    But I can't figure out how to do the opposite - CLEAR the cell on the Last Planner tab if it matches the offset value of the selected cells dropdown list. Instead of "Moved to last planner" the cell choice that would activate the removal would be "Not Implemented". Somehow I need to compare the offset value from one tab to the range of values in a column in another tab - if it finds it, it clears it.
    Last edited by Drivium; 03-22-2013 at 04:42 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Clear cell contents based on offset of dropdown selection on another tab.

    You may need to post a sample workbook demonstrating the values being "searched" for. You will again use the .Find() method, but this time it will need to search for a specific value in a specific column.

    Concept - declare a vFIND range variable. Use the .Find method to try and fill that variable by specific search. If the variable is filled, then you have an anchor cell you can now use to send other command to cells on that same row as the vFIND. If the variable is not filled, then it wasn't found and nothing happens.

    For example:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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