+ Reply to Thread
Results 1 to 4 of 4

worksheet_deactivate event if duplicate found

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    worksheet_deactivate event if duplicate found

    hi,
    in sheets("Rante").range.("ba2:ba500") found any duplicates value and sheet goes to deactivate then

    appear a msg "duplicate found" and reactivate the sheets("Rante")

    thanks
    hope some one will help
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: worksheet_deactivate event if duplicate found

    Hard to deactivate a sheet, you need to select a different sheet.

    Anyway, here is a code. When you activate the sheet, it will check out if there are duplicates and tell you.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: worksheet_deactivate event if duplicate found

    Hi,
    thanks for the reply

    its working very well but i just want to that when i click on MsgBox (ok). it select the cells which one has duplicate value

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: worksheet_deactivate event if duplicate found

    Change the code to do what you require.

+ 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. [SOLVED] Set deactivating worksheet as variable in Worksheet_Deactivate event
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2016, 11:48 AM
  2. Replies: 1
    Last Post: 06-01-2013, 01:27 AM
  3. Replies: 4
    Last Post: 09-18-2012, 09:06 AM
  4. Using the WorkSheet_Deactivate to autofilter and autofill cells
    By trishcollins in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2012, 03:41 PM
  5. Replies: 4
    Last Post: 08-04-2006, 01:50 AM
  6. Reasons why Worksheet_Deactivate fails?
    By cormorant in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-22-2006, 03:50 AM
  7. Worksheet_deactivate fails - any ideas?
    By cormorant in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2006, 08:58 AM

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