Extracting specific data from a worksheet

njd976

New Member
Joined
Aug 9, 2011
Messages
2
Hi guys,

I'm pretty new to VB but hopefully you can help!

I'm trying to make a form that has a search function (textbox and button), which will take the text in the textbox and search through an excel spreadsheet column to find the specified text...

I then want the found text row data (there are 5 columns) to be displayed on the form.

I hope that shoddy description kind of makes sense! what do you think the best way to do this would be?

Thanks,
Nick
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the Forum.

You would need some kind of Unique Number and then you can search based on that, if you use something like a Names you have the possiblity to find a number of the same names.

Which version of Excel are you using as 2003 has a Form you could use.
 
Upvote 0
Hi Trevor,

Thank you for your reply...

I have used the application.match function, which seems to be working quite nicely with the added benefit of some if statements to combat any errors.

I will let you know if I start to struggle again.

Cheers
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,558
Members
452,928
Latest member
101blockchains

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