Программное обеспечение

Как объединить ячейки в Excel при помощи формул?

Необходимо объединить ячейки в таблице (ВАЖНО), не данные в них. В excel на главной есть функция "объединить", позволяющая выполнить желаемое. Мой вопрос в том, если какая-нибудь формула, позволяющая выполнить то же самое?
Rustam Turdiev
Rustam Turdiev
349
включите запись макроса и объедините ячейку, какую вам надо, потом остановите запись и прсмотрите, что там записалось... возможно и есть....
Например, получится что-то такое, или короче этого:
Sub Макрос1()
'
' Макрос1 Макрос
'

'
Range("B3:B4").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.Merge
Range("C3:D3").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.Merge
Range("C4:D4").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.Merge
Range("B3:D4").Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.UnMerge
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.Merge
Range("B3:D4").Select
ActiveCell.FormulaR1C1 = "1234567890"
Range("B5").Select
End Sub
Жанат Сулейменов
Жанат Сулейменов
35 043
Лучший ответ
Rustam Turdiev Звучит интересно, определённо надо попробовать
...объединить ячейки в таблице (ВАЖНО), не данные в них
это как ?
покажите на примере ТАК ЕСТЬ и ТАК ХОЧУ