ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Hi,
Partial piece of code supplied for you
My range is N4:R4
Assuming i would like the Text alignment Center ".HorizontalAlignment = xlCenter" for cells O4:R4 only as cell N4 needs to be Text alignment Left ".HorizontalAlignment = xlLeft"
Please advise how the code below should then look.
Thanks
Partial piece of code supplied for you
My range is N4:R4
Assuming i would like the Text alignment Center ".HorizontalAlignment = xlCenter" for cells O4:R4 only as cell N4 needs to be Text alignment Left ".HorizontalAlignment = xlLeft"
Please advise how the code below should then look.
Thanks
Rich (BB code):
End If
LastRow = .Cells(Rows.Count, "N").End(xlUp).Row + 1
Application.ScreenUpdating = False
For i = 1 To 5
With .Cells(LastRow, i + 13)
.Value = Me.Controls("TextBox" & i).Value
.Font.Name = "Calibri"
.Font.Size = 11
.Font.Bold = True
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Borders.Weight = xlThin
.Interior.ColorIndex = 6
End With
Next i
Application.ScreenUpdating = True