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!
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!
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.
I also tried
![]()
Please Login or Register to view this content.
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.
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.
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.
ive also tried this
![]()
Please Login or Register to view this content.
Im not sure how to get this to work.. Anyone git any ideas?
Last edited by Jenkins27; 03-01-2015 at 07:31 PM.
is there a better way to code this so it will work
Did you try the line from post #5?
If that doesn't work, could you attach a workbook that shows the problem.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks