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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,222,312
Messages
6,165,268
Members
451,949
Latest member
bovacik

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