Copy of table is attached.
To the right of the Pivot Table on the second sheet is 6 cells that summarize payments for the jobs that are completed.
If a job is unpaid, the cell is left uncolored.
If a job is paid, it will be colored either Yellow or Green depending on which branch it pertains to.
I wish to make this procedure more automated by using a dynamic range selection in VBA that way I can call instead of manually highlighting the desired area in the pivot table.
My current method is shown in the attached spreadsheet. However I am having trouble and I don't know what to do next.
That way in Cell I3, Sheet 2, from the attached example, I can enter (something similar to)Please Login or Register to view this content.
So that my range can be automatically found instead of manually dragging a box around what I want. The pivot tables generated from month to month is no always going to be the same size.Please Login or Register to view this content.
Just to be clear, the range I wish to capture is the following.
PTDataBodyRange.png
Excluding the Grand Total Column and Row.
Any help is much appreciated.
Please ask questions if I have not explained my idea correctly.
Thanks,
SMCC
Bookmarks