+ Reply to Thread
Results 1 to 3 of 3

Worksheet_change, how to detect a range is changed instead only 1 cell?

  1. #1
    Forum Contributor
    Join Date
    02-07-2011
    Location
    netherlands
    MS-Off Ver
    Excel 2003
    Posts
    128

    Worksheet_change, how to detect a range is changed instead only 1 cell?

    like the title says. i am trying to check if the target is either a range or only 1 cell.

    I have a little code that says

    Please Login or Register  to view this content.
    But when target are multiple cells the same time, this line ends up with an error.
    Hoe can i detect wether it were more then 1 cells that were changed?

    After it i want to: EnableEvents = false, application.undo, msgbox "Change 1 cell at the time" and EnableEvents = true
    Last edited by vin1; 04-05-2012 at 06:16 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Worksheet_change, how to detect a range is changed instead only 1 cell?

    Please Login or Register  to view this content.
    Will return how many cells have been changed.

  3. #3
    Forum Contributor
    Join Date
    02-07-2011
    Location
    netherlands
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Worksheet_change, how to detect a range is changed instead only 1 cell?

    thanks that will do.

    Somethimes the answer is very simple, but you just have to know it

+ 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