+ Reply to Thread
Results 1 to 7 of 7

Prevent Entries via Excel userform on multiple conditions

  1. #1
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Prevent Entries via Excel userform on multiple conditions

    Good Day

    I have this userform which I am capturing PC Setups. I have three unique fields that I do not want to have duplicates for

    I have managed to get one field to prompt me if a duplicate exists. I am not getting the other fields to work. When I try adding the other two fields the system hangs.

    The fields I am referring to are :

    ALB Tag - working
    Monitor ALB Tag
    Power on Password

    I have attached the spreadsheet
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Prevent Entries via Excel userform on multiple conditions

    Try Changing this part of your code:

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Prevent Entries via Excel userform on multiple conditions

    mehmetcik beat me to it.

    @ farhadj - When I open your workbook, I get 4 images added to my desktop labeled G1 through G4. Is this supposed to happen?

    @mehmetcik - did this happen to you as well??
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: Prevent Entries via Excel userform on multiple conditions

    Hi gmr4ever1

    Yes that's correct you will get images on the userform

  5. #5
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: Prevent Entries via Excel userform on multiple conditions

    Hi Mehmetcik

    Thanks for the code. I tried the code and I am getting an error "Compile error" - Variable not found" - on line Flag = True

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Prevent Entries via Excel userform on multiple conditions

    Hi farhadj,
    I know I will get images on the userform, but they are also appearing on my desktop.

  7. #7
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: Prevent Entries via Excel userform on multiple conditions

    Hi Mehmetcik

    The code you advised has worked
    Thanks

+ 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] Prevent Duplicate entries in multiple column from VBA Userform
    By excel_126 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 03:13 AM
  2. Need a real time macro to prevent the duplicate entries between multiple worksheets
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2013, 07:07 AM
  3. Replies: 0
    Last Post: 08-14-2012, 01:18 PM
  4. prevent userform double entries via vba coding
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-06-2011, 05:53 PM
  5. Replies: 3
    Last Post: 10-18-2010, 11:09 AM
  6. [SOLVED] Prevent duplicate entries in Excel 2000
    By Stressed in forum Excel General
    Replies: 10
    Last Post: 01-18-2006, 04:10 PM
  7. Prevent Multiple Entries On Assigned Cells
    By travelersway in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-24-2005, 02:50 PM

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