Please I need a VBA code for the routine process below
Please attached 2 files, data and completed, i want a VBA code that i will run on the data file that will give me output in the completed file. The completed file is my desire result.
The process that invovle in creating the completed file from the data file are;
Below are the following steps
1. Make a copy of the YC tab in the data file and change the name of the new tab to YQ
3. On YQ tab, insert column C and name the column Dept
4. Enter a VLOOKUP formula (=VLOOKUP(B2,'BU Map'!A:B,2,FALSE) on column C to get the Dept names from the BU Map tab
5. Apply formula down to the last cell on column C
5. Apply filters on column C and delete all individual rows with the word “Delete DS-IWM CLOSED” appearing in Column C
6. Sums Columns F to L
7. Make a copy of YQ tab and rename the new tab as draft
8. On the draft tab, create two additional columns after Coop Students and label them in the sequence as shown below
Total PT (Column M)
Total FT (Column N)
Apply the formula below down the 2 columns
Total PT (Column M) =Sum (J2:L2)
Total FT (Column N) =Sum (I2+M2)
9. Make a copy of the draft tab and name the new tab as FT
10. In the FT tab Copy the entire columns and paste as values (to remove all formulas)
11. Delete columns F to M
12. Add a column after column G and name the column Delete_Zero and apply this formula on cell H2 =(F2=0,”Delete”,”-“) copy this formula to all rows below.
13. Apply filters on column G
14. Delete all rows appearing with the word ‘Delete’ in column G ‘Delete Zero’ (this is to remove all rows with zero FT numbers)
15. Sum column FT
16. Delete column G
16. Make a copy of draft tab and name it Student
17. On the student tab, delete all these columns "F to I and Column K to N "
18. Repeat steps 12 to 16 above
19. Make a copy of the draft tab and rename the new tab as "INTERNS"
20. On the Interns tab, delete all these columns "F to K and Columns M & N"
22. Repeat steps 12 to 16 above
23. Sum the Intern column
24. Update the Pivot table on the BU Map tab to link the current data on the draft tab
Thank you