Formatting & colours

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top