Hi friends,
I need help in Vba code. i am stuck on one part of report I am preparing the report there are multipal emp Id in A column there are two dates in column D (Start date) and column E(end date). I want make multipal records of one emp Id , records will create for 15 days group of each month. emp id count is not fixed every month change example
column A column B column c column d column e
Empl ID Employee Name New Explanation Exception Start Date Exception End Date
0645801 Leslie, Gail Disability 01/01/2019 02/28/2019
0996672 Onderdonk, Regina Disability 08/06/2019 12/31/2019
1006307 Patel,Jagruti K DEPT Change 01/01/2019 05/31/2019
1006591 Yu,Laura Disability 06/01/2019 12/31/2019
my condition are.
1- if stare date is 01/01/2019 and end date 01/15/2019. ( no change copy the raw and paste on sheet tab(Exception List MTD))
2 -if start 01/01/2019 and end date 01/19/2019. (we create 2 for same emp id like below
Empl ID Employee Name New Explanation Exception Start Date Exception End Date
0645801 Leslie, Gail Disability 01/01/2019 01/15/2019
0645801 Leslie, Gail Disability 01/16/2019 01/19/2019
now copy the both records and paste on sheet tab(Exception List MTD)
3- if start 08/06/2019 and end date 12/31/2019. (we create 10 records for same emp id like below
Empl ID Employee Name New Explanation Exception Start Date Exception End Date
0996672 Onderdonk, Regina Disability 08/06/2019 08/15/2019
0996672 Onderdonk, Regina Disability 08/16/2019 08/31/2019
0996672 Onderdonk, Regina Disability 09/01/2019 09/15/2019
0996672 Onderdonk, Regina Disability 09/16/2019 09/30/2019
0996672 Onderdonk, Regina Disability 10/01/2019 10/15/2019
0996672 Onderdonk, Regina Disability 10/16/2019 10/31/2019
0996672 Onderdonk, Regina Disability 11/01/2019 11/15/2019
0996672 Onderdonk, Regina Disability 11/16/2019 11/30/2019
0996672 Onderdonk, Regina Disability 12/01/2019 12/15/2019
0996672 Onderdonk, Regina Disability 12/15/2019 12/31/2019
now copy the records and paste on sheet tab(Exception List MTD)
I need help in Vba code. i am stuck on one part of report I am preparing the report there are multipal emp Id in A column there are two dates in column D (Start date) and column E(end date). I want make multipal records of one emp Id , records will create for 15 days group of each month. emp id count is not fixed every month change example
column A column B column c column d column e
Empl ID Employee Name New Explanation Exception Start Date Exception End Date
0645801 Leslie, Gail Disability 01/01/2019 02/28/2019
0996672 Onderdonk, Regina Disability 08/06/2019 12/31/2019
1006307 Patel,Jagruti K DEPT Change 01/01/2019 05/31/2019
1006591 Yu,Laura Disability 06/01/2019 12/31/2019
my condition are.
1- if stare date is 01/01/2019 and end date 01/15/2019. ( no change copy the raw and paste on sheet tab(Exception List MTD))
2 -if start 01/01/2019 and end date 01/19/2019. (we create 2 for same emp id like below
Empl ID Employee Name New Explanation Exception Start Date Exception End Date
0645801 Leslie, Gail Disability 01/01/2019 01/15/2019
0645801 Leslie, Gail Disability 01/16/2019 01/19/2019
now copy the both records and paste on sheet tab(Exception List MTD)
3- if start 08/06/2019 and end date 12/31/2019. (we create 10 records for same emp id like below
Empl ID Employee Name New Explanation Exception Start Date Exception End Date
0996672 Onderdonk, Regina Disability 08/06/2019 08/15/2019
0996672 Onderdonk, Regina Disability 08/16/2019 08/31/2019
0996672 Onderdonk, Regina Disability 09/01/2019 09/15/2019
0996672 Onderdonk, Regina Disability 09/16/2019 09/30/2019
0996672 Onderdonk, Regina Disability 10/01/2019 10/15/2019
0996672 Onderdonk, Regina Disability 10/16/2019 10/31/2019
0996672 Onderdonk, Regina Disability 11/01/2019 11/15/2019
0996672 Onderdonk, Regina Disability 11/16/2019 11/30/2019
0996672 Onderdonk, Regina Disability 12/01/2019 12/15/2019
0996672 Onderdonk, Regina Disability 12/15/2019 12/31/2019
now copy the records and paste on sheet tab(Exception List MTD)