+ Reply to Thread
Results 1 to 2 of 2

VBA check duplicate record

  1. #1
    Registered User
    Join Date
    10-06-2010
    Location
    Dunstable,England
    MS-Off Ver
    Excel 2010
    Posts
    95

    VBA check duplicate record

    Hi I have this form but i want to ammend it so when the user enters the data and clicks run I want the program to check for duplicate records using a combination of WeekDD (input field) and SiteDD (input field) and return a dialog box advising the user and asking if they want to overwrite the data. If the user clicks OK then the data is overwritten if they click cancel the operaiton is stopped.

    Can anyone help with this?

    Code so far

    Please Login or Register  to view this content.
    Many thanks

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: VBA check duplicate record

    It is probably easiest to use the COUNTIF worksheet function, though you could use the Find Method as well.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

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