+ Reply to Thread
Results 1 to 4 of 4

Userform add text when duplicate values are selected matching data criteria

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Userform add text when duplicate values are selected matching data criteria

    Hi,

    I am having a very well constructed userform.
    It works fine ( Thanks to the forum members' help)

    I have Combobox1 & 2 ( Have dependent list for combobox2)

    I want to create a leble14 which populates text ( In Red) ' Duplicate Entry, Check again' when combination of combobox 1 & 2 matches Text with in columns C & D
    otherwise text remains blank ( white)

    However it will allow user to ignore this and proceed using the form.

    Please Login or Register  to view this content.
    Any help please
    Kind regards

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Userform add text when duplicate values are selected matching data criteria

    Create your label4 at design time and set the visible property to false Then try this code

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Userform add text when duplicate values are selected matching data criteria

    Hi AndyLitch,
    Very well done Sir.
    It works perfectly.
    Thanks very much for your kind help.
    Last question. Basic though.
    How do I make the font colour to Red?
    The properties do not have provision for red colour.
    I have clicked * to thank you. wish I could click five stars.
    I am closing the thread as the main question has been kindly resolved by you.
    Thanks again
    Kind regards

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Userform add text when duplicate values are selected matching data criteria

    Change the forecolor property

    You're welcome mate and thanks for the rep.

+ 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. Prevent duplicate entry in a userform by matching record to multiple columns.
    By rsbuslon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-05-2023, 07:44 PM
  2. [SOLVED] Userform Text Box Data Validation Criteria- Letters & Spaces only, less than 130 character
    By Rschwar23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2014, 02:43 PM
  3. [SOLVED] Return cell values for non-matching & matching criteria
    By jenz_skallemose in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-13-2012, 11:52 AM
  4. [SOLVED] Only text values matching using index/match lookup - data type pro
    By Stanton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. [SOLVED] Fill values into a listbox matching selected values from a combobox
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2005, 01:06 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