Check table for value in TextBox and return value from same row in table

K1600

Board Regular
Joined
Oct 20, 2017
Messages
181
I'm sure this is quite simple and I am rather annoyed with myself that I can't get it to work but, I can't!

I have a table (Table9) in sheet (Trained Staff) which is formatted as an excel table with headers. The relevant of those headers for this bit being "Issuer" and "Authority status".

I also have a UserForm (UFAddEntry) with a text box (TxtIssuer) and I just want to look through the data in Table9 for the value in the textbox (in the Issuer column) and if the value in the 'Authority status' column is anything other than "Active" then to give me a messagebox with what the 'Authority status' value is.

Can anyone assist please. Thanks in advance.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Works spot on! Thanks again for your help.

G
And my new script does not use Offset. I figured out the better way. So no matter where the column is in the table
I always learn more myself as I help others
Glad I was able to help you.
Come back here to Mr. Excel next time you need additional assistance.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top