+ Reply to Thread
Results 1 to 11 of 11

check to see if textbox1 value is in column A of sheet 3

  1. #1
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    check to see if textbox1 value is in column A of sheet 3

    I want it so when commandbutton2 is pressed it checks to see if the value of textbox 1 is in column A of sheet 3... if it is continue with code if not message that says "Please correct"... thank you!

  2. #2
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: check to see if textbox1 value is in column A of sheet 3

    this is what I got and its not working

    Please Login or Register  to view this content.
    Last edited by Jenkins27; 03-01-2015 at 01:44 PM.

  3. #3
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: check to see if textbox1 value is in column A of sheet 3

    I also tried
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: check to see if textbox1 value is in column A of sheet 3

    There are a couple of types of Textboxes. Since you did not specify I will assume you are using a UserForm Textbox called TextBox1.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: check to see if textbox1 value is in column A of sheet 3

    You set a worksheet variable, but don't use it to qualify your range.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  6. #6
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: check to see if textbox1 value is in column A of sheet 3

    alright I got part of it to work but the part in the red is not working... any ideas?... what im trying to do in that part is see if textbox1 value is already in column A of sheet3 and if if it is a message to pop up...

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: check to see if textbox1 value is in column A of sheet 3

    ive also tried this

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: check to see if textbox1 value is in column A of sheet 3

    Im not sure how to get this to work.. Anyone git any ideas?
    Last edited by Jenkins27; 03-01-2015 at 07:31 PM.

  9. #9
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: check to see if textbox1 value is in column A of sheet 3

    is there a better way to code this so it will work

  10. #10
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: check to see if textbox1 value is in column A of sheet 3

    Did you try the line from post #5?

    If that doesn't work, could you attach a workbook that shows the problem.

  11. #11
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: check to see if textbox1 value is in column A of sheet 3

    Is your worksheet called Sheet3 or "all parts". You have declared it twice. If you don't have a Sheet3, remove that line or else it won't work. Also, posting multiple posts when you don't get a response will not help you case.

+ 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] check column headers against sheet names if sheet not exist create it
    By AkaTrouble in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2015, 05:59 PM
  2. [SOLVED] Button to count how many value of textbox1 are there in column A in sheet1
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2014, 09:44 AM
  3. Find row number where column A value is equal to textbox1.value
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2014, 07:26 AM
  4. If textbox1 is empty then put paste some default text to textbox1
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 03:16 PM
  5. [SOLVED] Search column in sheet and check against date in another column
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2012, 02:16 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