Hello,
I want to utilize a macro to place left braces next to each merged cell. I already have a macro that goes down a column and merges groups of cells (going from A,B,C,etc):
I am trying to incorporate this line of coding to automatically place left braces around each merged cell, but it seems to only paste the shape in a static place in my file:
How can I write my VBA so that after each merge, there follows a brace? For example, group "A" would be merged, then a brace would be pasted; group "B" would be merged, then a brace would be pasted, etc.
Thank you,
Tony
I want to utilize a macro to place left braces next to each merged cell. I already have a macro that goes down a column and merges groups of cells (going from A,B,C,etc):
Code:
Sub MergeCells()
Dim LastRow As Long, Ar As Range
LastRow = Cells.Find("*", , xlValues, , xlRows, xlPrevious).Row
For Each Ar In Range("F15:F" & LastRow).SpecialCells(xlBlanks).Areas
Ar(1).Offset(-1).Resize(Ar.Count + 1).Merge
Next
End Sub
I am trying to incorporate this line of coding to automatically place left braces around each merged cell, but it seems to only paste the shape in a static place in my file:
Code:
ActiveSheet.Shapes.AddShape(31, ActiveCell.Left, ActiveCell.Top, 6, 32.25).Select
How can I write my VBA so that after each merge, there follows a brace? For example, group "A" would be merged, then a brace would be pasted; group "B" would be merged, then a brace would be pasted, etc.
Thank you,
Tony