Select one row, block select the colums you want your text to span, Right click. Select cell format-alignment, check merge cells. JSW
Can that task be accomplished by a macro of some sort? I am thinking about several macros to set the layout of my sheet. Is this possible and how would I go about collecting/creating these macros? My data is generated from a previous excel spreadsheet. Just looking to simplify the layout setup in a timely manner for printing purposes. Thanks.
Brian
ActiveCell.FormulaR1C1 = "Test Text"
Range("A1:D1").Select
With Selection
.HorizontalAlignment = xlCenter
.WrapText = False
.ShrinkToFit = False
.MergeCells = True
End With
Selection.Font.Bold = True
Or,
ActiveCell.FormulaR1C1 = "Test Text"
Range("A1:D1").Select
With Selection
.HorizontalAlignment = xlCenter
.WrapText = False
.ShrinkToFit = False
.MergeCells = False
End With
Selection.Merge
Selection.Font.Bold = True
Both work, the first does it in the formatt the second does it outside of the format block. Its the "Merge." In this case the test text is added to cell A1 and A1 id formatted to center across A1 to D1, the text is also bolded. JSW