Hi
I have a problem with data in a merged cell being cut off. I have a list of names (Scott, George, Susie, Arthur) in cells C2 to D2 (ie cells are merged). The problem is that the data is clipped short and I cannot do a columns.autofit as the columns are merged and this doesn't seem to work.
My code is as follows:
Cells.Select
With Selection
.Columns.AutoFit
End With
Is there a neat way to get all the data to fit into the cells?
Just to provide some more info, the data is initially in one cell and I later merge it so I was thinking of determining the width of the autofitted single cell and later doing an if statement
If Merged cells.totalcolumnwidth < originalcolumnwidth then
Make the merged cells wider blah blah
End if
Very clumsy.
Ideas [Sadeyes]
I have a problem with data in a merged cell being cut off. I have a list of names (Scott, George, Susie, Arthur) in cells C2 to D2 (ie cells are merged). The problem is that the data is clipped short and I cannot do a columns.autofit as the columns are merged and this doesn't seem to work.
My code is as follows:
Cells.Select
With Selection
.Columns.AutoFit
End With
Is there a neat way to get all the data to fit into the cells?
Just to provide some more info, the data is initially in one cell and I later merge it so I was thinking of determining the width of the autofitted single cell and later doing an if statement
If Merged cells.totalcolumnwidth < originalcolumnwidth then
Make the merged cells wider blah blah
End if
Very clumsy.
Ideas [Sadeyes]