Quote:
Originally Posted by Purfleet
You could do =C4&CHAR(10)&C5 and turn on Wrap text which is much nicer
But if you insist on using merged cells you can select the top cell of the 2 you want merged and run this
Sub MergeCellAndBelow()
Dim r As Range
Dim c1 As String
Dim c2 As String
c1 = ActiveCell.Value
c2 = ActiveCell.Offset(1, 0).Value
Application.DisplayAlerts = False
Range(ActiveCell.Address & ":" & ActiveCell.Offset(1, 0).Address).Merge
Application.DisplayAlerts = True
With ActiveCell
.Value = c1 & Chr(10) & c2
.WrapText = True
End With
End Sub
|
Run where exactly? command prompt?