Empty all cells if same value

someone21

Board Regular
Joined
Sep 16, 2011
Messages
71
In my workbook, I have many worksheets (>10). Suppose in my active worksheet (sheet3), I have a list of names in a single column A.

Now I want to empty all the cells for all the WS in the workbook containing "any" of those names in column A of activeWS. Suppose sheet3. (a5)= petermange and if sheet7. z24=petermange, I want the z24 cell to be emptied. sheet3.(a64)= gia132 and sheet9. (b3)=gia132, then b3 cell should be emptied. The exception is for active worksheet where none of data should be emptied.

All the data in active ws is in one column only, column A. Whereas the other worksheets, data can be anywhere.

Please kindly help on a macro. Thanks in advance.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Please can anybody help on this?

In simple terms, need a macro. Empty all cells within entire WB if it contains any of the words from the column A of the active worksheet.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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