+ Reply to Thread
Results 1 to 4 of 4

Validation & Worksheet_Change & Delete Multiple Selection Problem

  1. #1
    Registered User
    Join Date
    07-20-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Validation & Worksheet_Change & Delete Multiple Selection Problem

    I have a range of cells with dropdowns to select names supplioed from a list - that works great.

    On the sheet containing those I have some Worksheet_Change code like this;

    Please Login or Register  to view this content.
    This code colours the cell with a colour from a lookup on another sheet (the colour associated with the selected staff name from the list. This works fine as well.

    The problem comes if you select a group of these validated cells and then delete the contents using the Delete Key - the the code faults as I suppose it can't do the lookup.

    1) Am I doing the coloring in the 'right' way ?
    2) What can I do about the Delete Key problem ?
    3) Any other ideas ?


    Thanks for taking the time to read.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    XL 2010,2016
    Posts
    11,640

    Re: Validation & Worksheet_Change & Delete Multiple Selection Problem

    You first line could be.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-20-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Validation & Worksheet_Change & Delete Multiple Selection Problem

    Thanks very much for that davesexcel - really useful code snippet.

    Is there a way I can get the actual selection range to reuse - also is there a way to know what kind of action was carried out on the multiple selection, like delete or whatever ?

    Thanks again for the input.

  4. #4
    Registered User
    Join Date
    07-20-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Validation & Worksheet_Change & Delete Multiple Selection Problem

    Thanks again, all sorted now

+ 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