dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,392
- Office Version
- 365
- 2016
- Platform
- Windows
I have a spreadsheet that I have to record new data in every week. This spreadsheet has a table in it, which is one of the new features of excel, being able to put a table in. I have some code that will insert a new column so I can enter the data for the current week.
What I want is to be able to put a border around that new column that is added.
The table name is tblQuals and the code that I have for the new row is below.
Thanks
What I want is to be able to put a border around that new column that is added.
The table name is tblQuals and the code that I have for the new row is below.
VBA Code:
Columns("D:D").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("D8").Select
ActiveCell.FormulaR1C1 = "As of " & Date
ActiveCell.Font.size = 11
Columns("D:D").ColumnWidth = 18.71
With Range("E6")
.Copy Range("D6")
.Clear
End With
Columns("E:E").Validation.Delete
Thanks