Hi,

I have a sheet with name form
I would like to group rows based on values in colomn W
If the value in cell W? is 1 ungroup
If the value in cell W? is 0 group
If the value in cell W? is empty ungroup

The trigger to run the code is the change of a drop down in cell E5 or in E6

Can someone help me with this VBA code?

Thanks
Arjen