I would like to add group by function which the user can choose which field to group, For example,
I checked Location. Then the first column in Excel should be grouped, but the problem is the employee S1670 is GUL, while the employee S1700 and S1701 should be HQ.
Below is the code that used to merge the cell (group by)
Location = TRUE is the status of the checkbox. Location is checkbox name.
ToCol := 4 + GroupBy-1; Currently my table only have these 3 record, I am not sure how to group by different location, so I hardcode it, it is the end cell to merge.
Hi Jonathan,
“Emp Classification 4” is field name of Location in Table, sorry for make you all confusing.