+ Reply to Thread
Results 1 to 8 of 8

how to see if userform value exists on sheet

  1. #1
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    how to see if userform value exists on sheet

    hi
    ive tried various codes what I would like to do is from userform combobox check sheet3 column a to see if value exists if does clear boxes(which can do) if not write to sheet (can do),its the checking part im having probs with any ideas please
    cheers colin
    ie if combobox2.value=sheet3("a") then exit
    Last edited by cfinch100; 11-20-2013 at 11:45 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: how to see if userform value exists on sheet

    Hi Colin

    An example
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: how to see if userform value exists on sheet

    hi jaslake
    thanks for that have been wrecking this old brain and old threads and could not come up with this,will have a go with it tonightand leave rep
    cheers colin

  4. #4
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: how to see if userform value exists on sheet

    hi jaslake
    this is what I have for combobox
    Private Sub ComboBox2_Change() 'FRMISSUED
    Please Login or Register  to view this content.
    looks up sheet1 and fills combobox2 and textboxes which work ,but supposed to look up sheet3, if already issued then show message,will have another play later
    cheers colin

  5. #5
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: how to see if userform value exists on sheet

    hi jaslake
    have uploaded program its a multipage userform and combobox2 is supposed to look up sheet3 if value is there it then lets you enter all in fo have swapped it around and it either stops everything or does not do anything,any help/pointers would be appreciated
    cheers colin
    Attached Files Attached Files

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: how to see if userform value exists on sheet

    Hi Colin

    If I understand what you're attempting to do, change your ComboBox2_Change Code as indicated ...
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: how to see if userform value exists on sheet

    hi jaslake
    yes you did understand completely works very well many thanks for the help
    cheers colin

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: how to see if userform value exists on sheet

    You're welcome...glad I could help. 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. Replies: 1
    Last Post: 11-14-2013, 09:24 PM
  2. Userform for data entry checking is a value exists
    By mdrover in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2013, 12:18 AM
  3. Replies: 1
    Last Post: 05-29-2013, 01:20 PM
  4. VBA - If ActiveCell.Value (from sheet 1) exists in a range in sheet 2
    By nateorious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2012, 05:25 AM
  5. Macro to copy sheet from closed work book and overwrite if sheet already exists
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-23-2009, 06:36 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