r1.Interior.ColorIndex gives error when running the code. It just says there something wrong in the line when evaluating.
xlNone
xlAutomatic seems to be a problem.
"With …
End With "
is also not possible in the VBA compiler?
ws.Range(“B1”).HorizontalAlignment = xlLeft : "Unable to set HorizontalAlignment property of Range class when evaluating HorizontalAlignment "