M
Mike
First for the headers, your code can be reduced by quite a
significant amount by trying this (you mentioned center
alignment, but didn't have it coded):
With ThisWorkbook.Worksheets(1).Range("A1:F1")
.Value = Array("Company Name", "Company Name", _
"Address", "Invoice Date", "Invoice
Number", "Amount")
With .Font
.Name = "Arial"
.Size = 12
.Bold = True
End With
.HorizontalAlignment = xlCenter
End With
For the total row, something similar
With ThisWorkbook.Worksheets(1).Range("A" & iRow & ":F" &
iRow)
..Font
.Name = "Arial"
.Size = 12
.Bold = True
.HorizontalAlignment = xlCenter
End With
significant amount by trying this (you mentioned center
alignment, but didn't have it coded):
With ThisWorkbook.Worksheets(1).Range("A1:F1")
.Value = Array("Company Name", "Company Name", _
"Address", "Invoice Date", "Invoice
Number", "Amount")
With .Font
.Name = "Arial"
.Size = 12
.Bold = True
End With
.HorizontalAlignment = xlCenter
End With
For the total row, something similar
With ThisWorkbook.Worksheets(1).Range("A" & iRow & ":F" &
iRow)
..Font
.Name = "Arial"
.Size = 12
.Bold = True
.HorizontalAlignment = xlCenter
End With