I want macro to check few validation and correct data as mentioned below.
1) Serial number in column A Should be end of the data. If not Show popup “Serial number incomplete”
2) Trim and data in rows and columns from Row number 2 to till end of the data range
3) All the character should be converted to capital letters
4) There should not be any duplicate member. If there is duplicate member show popup “There is Duplicate member in Data” (validation to find duplicate is Name, DOB and Gender) and end macro.
5) The Family code mentioned against each Self to be unique. If one family code is mentioned against more than one Self then Show popup “There is duplicate family code” and end macro.
6) Data in Column E under “RELATION1” to be blank, If there is any data show popup that “Relation is already prescribed” and exit macro.
7) There should be value against each self in column I, J, K, L, M, N, and O. If any cell blank Show popup stating “Value under (Column heading) is blank.
8) Once Data in Column E Deleted and completely clean Need Macro for below mentioned task
a. Copy Relation “SELF” from Column “D” to Column “E”
b. If Relation is “Employee” in Column “D” then Copy Relation as “SELF” to Column “E”
c. Now Count number of children in one family with the help of family code in column B. Accordingly mention relation as Child1, Child2, Child3, Child4 and so on in Column E. For example refer employee code “10000522” there are 3 child in family hence in E, Mentioned as Child1, Child2 and Child3.
Bookmarks