empty the Cell content if multiple match is found |VBA|EXCEL|

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
How about
Code:
Dim c As Range
For Each c In Range("A7:AE7")
   If c.Value = "SUP" Or c.Value = "AL" Then
      c.Clear
   End If
Next c
 
Upvote 0
Fluff i have tried this one But it Delete only one single Row i want to delete => How many rows are been used that many only ?
For example => forget about first two headers Days name and Date 01 .. 02 ... and so on
the remaining rows after first two headers => is 6 Rows only that many rows should check => where ever their is SUP and AL between Column Range A:AE and Row Range of 1:6 used Rows should be Check the match condition and Delete the Data in Cell and Set cell property to No fill (Means nothing is fill Not even with Color)

i have tried your code But it works with only one single Row
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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