Results 1 to 6 of 6

Prevent Duplicate Entries

Threaded View

whousedmy Prevent Duplicate Entries 05-08-2009, 01:22 AM
royUK Re: Prevent Duplicate Entries 05-08-2009, 02:28 AM
whousedmy Re: Prevent Duplicate Entries 05-08-2009, 03:38 AM
whousedmy Re: Prevent Duplicate... 05-13-2009, 09:40 PM
slash4u Re: Prevent Duplicate Entries 08-17-2010, 08:18 AM
royUK Re: Prevent Duplicate Entries 08-17-2010, 11:40 AM
  1. #4
    Registered User
    Join Date
    05-07-2009
    Location
    Singapore But in China now
    MS-Off Ver
    Excel 2007
    Posts
    25

    Talking Re: Prevent Duplicate Entries[SOLVED]

    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim r As Range
    Dim ans As String
    Const myCol As Long = 3
    If Intersect(Target, Columns(myCol)) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    For Each r In Intersect(Target, Columns(myCol))
    If Application.CountIf(Columns(myCol), r.Value) > 1 Then
    MsgBox (r.Value & " already exsists")
    r.ClearContents
    End If
    Next
    Application.EnableEvents = True
    End Sub
    Here the correct coding to solve duplicate entries in the same columns.
    Last edited by whousedmy; 05-13-2009 at 09:45 PM. Reason: SOLVED
    Noobie here to LEARN

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