Results 1 to 7 of 7

Unique Values

Threaded View

merilvingian Unique Values 01-15-2009, 11:32 AM
sweep Hi, Can you not do what is... 01-15-2009, 11:44 AM
incjourn This should work... ... 01-15-2009, 11:48 AM
merilvingian Well I thought that was going... 01-15-2009, 12:02 PM
tinyjack Why not use Validation as... 01-15-2009, 01:16 PM
merilvingian I already have a validation... 01-15-2009, 01:28 PM
shg Change the validation type to... 01-15-2009, 01:50 PM
  1. #4
    Registered User
    Join Date
    11-22-2008
    Location
    Brisbane, Australia
    MS-Off Ver
    2003
    Posts
    23
    Well I thought that was going to work,

    It looked like it would work.

    But everytime I entered data into any cell within those ranges I would get the error all the time.

    You see only those two columns D and G have to be unique
    all other columns can have duplicates.

    Quote Originally Posted by incjourn View Post
    This should work...

    Private Sub Worksheet_Change(ByVal Target As Range)
    For Each c In Range("A1:B5")
        If Target.Value <> "" And Target.Value = c.Value Then
            MsgBox "Value already entered elsewhere!"
            Target.ClearContents
        End If
    Next c
    End Sub
    I didn't look at your code but I think you should be able to incorporate it
    Last edited by merilvingian; 01-15-2009 at 12:24 PM. Reason: False hope

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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