+ Reply to Thread
Results 1 to 4 of 4

2nd condition: Worksheet_Change(ByVal Target As Range)

  1. #1
    Registered User
    Join Date
    05-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    33

    2nd condition: Worksheet_Change(ByVal Target As Range)

    Hi

    Could you please look at the below code? I would like to also check cell c1. If it has "Test3" as value, I would like to clear the contents of range c6:d6. Thanks.

    for example, when the user types test1 or test2 to a1, range a6:b6 will be clear, then
    the user types test3 to c1, range c6:d6 will be clear.
    if the user types apple (or any other values) to a1 or c1, the code does nothing.


    Please Login or Register  to view this content.
    Last edited by drawing.blanks; 05-08-2012 at 02:57 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: 2nd condition: Worksheet_Change(ByVal Target As Range)

    Hi

    Please Login or Register  to view this content.
    Rest will remain the same. Create a copy of the sheet that has data and try this code since its not tested
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: 2nd condition: Worksheet_Change(ByVal Target As Range)

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: 2nd condition: Worksheet_Change(ByVal Target As Range)

    Thanks Steven this forum rocks

+ 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