Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A1 contains one line.
B1 contains one line. C1 contains one to many lines. D1 contains two lines. E1 contains one to many lines. F1 contains one to many lines. Now do I paste multiple lines into one cell? How do I make all cells have the same height as the cell with the most lines? How do I center vertically the contents in the cells that have less than the most lines? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
here's one for example Dim c As Range, txt As String For Each c In Range("A1:F1") txt = txt & c.Value & Chr(10) Next With Range("A2") .Value = Left(txt, Len(txt) - 1) .VerticalAlignment = xlCenter .WrapText = True .Rows.AutoFit End With isabelle Le 2014-12-04 08:57, GWC a écrit : A1 contains one line. B1 contains one line. C1 contains one to many lines. D1 contains two lines. E1 contains one to many lines. F1 contains one to many lines. Now do I paste multiple lines into one cell? How do I make all cells have the same height as the cell with the most lines? How do I center vertically the contents in the cells that have less than the most lines? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rows with cells of varying number of lines | Excel Programming | |||
Varying cell ranges in formulas according to number of cells with certain value | Excel Worksheet Functions | |||
Copy Data From Varying Lines to One Sheet | Excel Programming | |||
Insert a fixed number of lines between a varying range of cells | Excel Programming | |||
Transpose rows to columns with varying numbers of lines per record | Excel Programming |