Macro Needed: Delete row where specific cell <> 1 (and activate using toggle switch)

acemanhattan

New Member
Joined
May 11, 2016
Messages
45
Hello All.

User makes a series of decisions on an tab INPUTS, which causes tab MODEL AV51:AV163399 to become 1 or 0, depending on user's decisions. User decision may cause as many as all rows to be 1, or as few as, say 20 rows to be 1. What I'd like is a macro that deletes all rows on MODEL tab where the entry in row AV is <> 1 (or is =0, since it is either 1 or 0), and I'd prefer the macro to be initiated when the user toggles from "NO" to "YES" in cell L4 from the INPUTS tab.

Thank you in advance.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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