VBA Macro Check if rows contains specific values and no abnormality

Nody224

New Member
Joined
Dec 8, 2022
Messages
5
Office Version
  1. 2013
Platform
  1. Windows
Hello,
Can someone help me with the following, I want to build a VBA Macro which allows me to :

The Macro would verify if (for the rows with an « x » in a specific columns) some cells contain effectively a value (for example a date or a six digit number or some specific text character) in different columns. If the cells effectively contains the specific values, the row is considered treated and the macro would insert today’s date in replacement of the previous « x ». If the row contains missing values in specific columns, then the macro would write ANOM in the column where there is usually a « x » if not treated or today’s date if treated.

At the end of the macro when all rows are treated the macro would display « OK all rows have been treated » if 0 abnormality or « Carefull some rows are in ANOM » if there are some abnormalities.

If you need some more specifications, I could give. Or could you try to specify which functions of VBA I may need to use.

Thanks, i’m a beginner in VBA and really need some help. I would appreciate some tips

I'm stuck with the code, as I don't really know VBA. I'm trying to learn,
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Can you post an example using XL2BB of what you need done a sample of the outcome
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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