New_To_Macros
New Member
- Joined
- Aug 1, 2020
- Messages
- 1
- Office Version
- 2016
- Platform
- Windows
Hello,
I would like to create a macro, which will insert
Any assistance on how to create this macro is greatly appreciated. Thank you!
Original Table
What the table should look like after running the macro:
I would like to create a macro, which will insert
- a subtotal after each change in either column B (Employment Status) or C (Type of Leave),
- bold the entire subtotal row,
- change the background of the subtotal row to grey,
- insert 3 rows after the subtotal and
- insert a line of headers before the beginning of the next set of data
- sort the data by largest to smallest in column F ($ OF LEAVE), then from A-Z in column A (Employee Name)
Any assistance on how to create this macro is greatly appreciated. Thank you!
Original Table
Employee Name | Employment Status | Type of Leave | Rate/Hr | Hours of Leave | $ of Leave |
Andrew Anderson | Full Time | Vacation | 40.00 | 10.00 | 400.00 |
Birgit Braun | Full Time | Vacation | 30.00 | 15.00 | 450.00 |
Charly Campbell | Part Time | Vacation | 20.00 | 10.00 | 200.00 |
Donald Dennis | Full Time | Sick | 40.00 | 20.00 | 800.00 |
Edward Ego | Student | Lieu Time | 15.00 | 5.00 | 75.00 |
Fred Flint | Full Time | Lieu Time | 30.00 | 15.00 | 450.00 |
George Gutenberg | Part Time | Lieu Time | 20.00 | 10.00 | 200.00 |
Henry Hase | Part Time | Vacation | 20.00 | 15.00 | 300.00 |
Ida Iglo | Student | Vacation | 15.00 | 15.00 | 225.00 |
What the table should look like after running the macro: