hi
I created the headers and borders . when I add a new sheet , also I add some lines to code to copy specific some values from specific cells, but the problem is lefting the cells contain borders and fill the rows doesn't contain borders in added a new sheet
any suggestion to fix this problem
Private Sub Workbook_NewSheet(ByVal Sh As Object)
With Sh
.Move After:=Sheets(Sheets.Count)
.Range("A1:k12").Borders.Weight = xlMedium
.Range("A1:k12").HorizontalAlignment = xlCenter
With .Cells(1).Resize(1, 11)
.Value = Array("ITEM NUMBER", "ITEM DESC", "QUANTITY", "UNIT PRICE", "TOTAL", "WHSE", "ACOUNT CODE", "BUSINESS UNIT", "DEPARTMENT", "WORK CENTER", "FLOCK")
.Interior.ColorIndex = 53
.Font.Bold = True
.Font.Color = vbWhite
.EntireColumn.AutoFit
Dim sh1 As Worksheet
Set sh1 = Sheets("main")
lr = sh1.Range("a" & Rows.Count).End(xlUp).Row
Sh.Range("a" & lr) = sh1.Range("e3").Value
Sh.Range("d" & lr) = sh1.Range("e2").Value
Sh.Range("f" & lr) = "DAT010"
Sh.Range("g" & lr) = "1141000022"
Sh.Range("h" & lr) = "JP-PROD."
Sh.Range("i" & lr) = "JP-WIPDP"
Sh.Range("j" & lr) = "JP-WIPWC"
Sh.Range("k" & lr) = "Flock_4"
End With
End With
End Sub