I'm trying to create a code that will make a selection of cells in a row automatically merge when a value in column A appears.
If the value "Group 1" or "Group 2" appears in cell A2, the range A2:N2 should merge. I'd need to use this code in other rows of the spreadsheet too if possible, and if the value in column A is changed again, the cells should automatically return to being separate (not merged).
Is this possible?
I'm very new to VBA, so thanks for your help!
Charlotte
If the value "Group 1" or "Group 2" appears in cell A2, the range A2:N2 should merge. I'd need to use this code in other rows of the spreadsheet too if possible, and if the value in column A is changed again, the cells should automatically return to being separate (not merged).
Is this possible?
I'm very new to VBA, so thanks for your help!
Charlotte