I would like to center all cells in a worksheet that is not Columns A and B and Rows 1, 2, and 3
I am using this code to identify the last column and ow with data in it.
I also am trying to use ".HorizontalAlignment = xlCenter"
Thanks for all the help!
I am using this code to identify the last column and ow with data in it.
VBA Code:
lr = Cells(Rows.Count, "A").End(xlUp).Row
lc = Cells(1, Columns.Count).End(xlToLeft).Column
I also am trying to use ".HorizontalAlignment = xlCenter"
Thanks for all the help!