+ 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
    43

    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
    MS 365
    Posts
    13,475

    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
    43

    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
    43

    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)

Similar Threads

  1. Replies: 7
    Last Post: 12-21-2016, 12:30 PM
  2. Multiple Worksheet_Change problem
    By AllenT871 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2014, 08:16 AM
  3. Problem with Formulas based on Data Validation Selection from multiple tabs
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2012, 09:40 PM
  4. Problem with Formula based on Data Validation Selection from multiple tabs
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2012, 05:32 PM
  5. Multiple Selection Data Validation and Placement of Selection.
    By LCS in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-08-2012, 08:48 AM
  6. Two Selection validation problem
    By maxthebear in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2009, 08:37 PM
  7. [SOLVED] Problem with Data Validation Dropdown List / Worksheet_Change Event
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2006, 05:29 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