I have this piece of code on my script:
.Range(.Cells(1,1),.cells(1,5)).HorizontalAlignment = xlCenter
.Range(.Cells(h,1),.cells(1,5)).Font.Underline = xlUnderlineStyleSingle
.Range(.Cells(1,1), .Cells(1,5)).Font.FontStyle = "Bold"
.Range(.Cells(1,1), .Cells(1,5)).Font.Size = 9
Everything works except the HorizontalAlignment and Underline.
Any help will be greatly appreciated.
.Range(.Cells(1,1),.cells(1,5)).HorizontalAlignment = xlCenter
.Range(.Cells(h,1),.cells(1,5)).Font.Underline = xlUnderlineStyleSingle
.Range(.Cells(1,1), .Cells(1,5)).Font.FontStyle = "Bold"
.Range(.Cells(1,1), .Cells(1,5)).Font.Size = 9
Everything works except the HorizontalAlignment and Underline.
Any help will be greatly appreciated.