VBA: Search a Closed Workbook for Matching Text

pufan

New Member
Joined
Jun 22, 2011
Messages
1
Okay, I want to click on one cell, take the text from the cell next to it (let's say it's ABC-123), and use that text to search for matching text in a certain column in a closed workbook. If ABC-123 exists in the searched column, I want to insert a row below ABC-123, copy the information in the row containing ABC-123 in the closed workbook, and paste this in the inserted row.

I can already click on the cell, obtain the text from the cell next to it, do a few other things, and insert rows. My problem is searching and obtaining information from the closed workbook.

And as a background, the open workbook is 151 KB of pure data and the closed workbook is 127 KB of pure data, so my laptop isn't a huge fan of copying all of the data over.

Any help would be great.

Thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,592
Messages
6,179,790
Members
452,942
Latest member
VijayNewtoExcel

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