Searching Entire WorkBook?

Niemsters

New Member
Joined
Jul 29, 2010
Messages
5
I'm a relativly new VBA user, so this may be a rather elementary question, but: Is there a way to search for a text string through the entire workbook instead of searching each page individually?

My wookbook has 100+ worksheets with lots of data and calculation, and inputs new data as well. However occasionally there are "NA" figures which mess up my equations that I want to delete. This is a text string NA from an outside source, not the tpical #NA error Excel gives.

Any advice would be appreciated, I'd like to do this without searching each page individually...
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
If you are using Excel 2003, each worksheet has (256 cols x 65, 000+ rows), thats more than 16 million individual cells.

If you have 100 worksheets, thats makes it in excess of 1 billion cells.


Do you really need to look at all of them ?
 
Upvote 0
Hi

Have you looked at using the standard replace functionality? See menu option Edit > Replace > here you can search for specific things (in your case "NA" in the entire workbook), and replace with either nothing or a zero. I'm not sure of the limitations for this function but it sounds like a lot of data!!

Andrew
 
Upvote 0

Forum statistics

Threads
1,226,693
Messages
6,192,471
Members
453,726
Latest member
JoeH57

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