I've been using a worksheet that has a TRIM VBA function that works well. I copy and paste the data each month from another program into the DATA tab. Then, click on the TRIM macro button and the data is set out in the DATA2 worksheet. All has worked well until some recent changes to the input data that now requires an adjustment to the VBA code, which now requires some help.
I have attached a sample workbook with data for reference and the VBA code used.
Base on the data pasted in worksheet 1 [DATA], I need the VBA to:
1. Remove all the SUBTOTAL rows
2. Remove all the blank rows
3. Complete the TRIM function with the changes into worksheet 2 [DATA2]
4. Highlight the rows [Highlight color "Yellow"] where the accrual amount [Col I] is negative amount
5. Sum the data amount in col I based on FUND col [A] reference #
Their is one change needed in the summing VBA function in worksheet 2 [DATA2]. That is where the fund code equals 0160A1 and the ACC [Col D] starts with "SP". What is needed is for the a sum for 0160A1 and a sum for 0160A1 - SP.
Hopefully, the existing code for the TRIM function and the sum just needs some minor adjustment.
As always thank you for all help provided.
Bookmarks