![]() |
|
#1
|
|||
|
|||
![]()
Agreed - merged cells are the devils own work and should be avoided
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 Its a bit rough and ready but should give you the idea Last edited by Purfleet; 06-13-2020 at 09:57 AM. Reason: typo |
#2
|
|||
|
|||
![]() Quote:
Run where exactly? command prompt? |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Magic" indentation for "too-long" text-lines that are longer than one line | pGrnd | Word | 2 | 04-20-2020 03:23 PM |
Combine "sort within groups" and "identify duplicate/unique values" in two different variables. | civilcervant | Excel | 3 | 06-12-2017 07:27 AM |
Replace "comma" with "and" in line of text | audioman | Word VBA | 7 | 01-21-2016 03:11 PM |
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas | jocke321 | Word VBA | 2 | 12-10-2014 11:27 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |