Hi
I have no VBA experience and was hoping someone might be able to help me here. I have an excel spreadsheet with a lot of data. What I would like to do is in row 2, starting at column C, I want to go across and find cells where the cell contents in adjacent cells is the same. If it is the same, the cells should be merged and centred.
ie 2 | 2 | 2 | 3 | 4 | 4 | 5 | 5 | 5
becomes
2 | 3 | 4 | 5
I only need to do this with row 2. However, I need to do this for all sheets (there are usually about 4 sheets.)
I hope someone can give me a hand.
Thanks a lot
I have no VBA experience and was hoping someone might be able to help me here. I have an excel spreadsheet with a lot of data. What I would like to do is in row 2, starting at column C, I want to go across and find cells where the cell contents in adjacent cells is the same. If it is the same, the cells should be merged and centred.
ie 2 | 2 | 2 | 3 | 4 | 4 | 5 | 5 | 5
becomes
2 | 3 | 4 | 5
I only need to do this with row 2. However, I need to do this for all sheets (there are usually about 4 sheets.)
I hope someone can give me a hand.
Thanks a lot