How to display the header line rotated by 45 degrees like in Excel?

Wow thank you so much for your quick reply, It’s exactly what I needed!

It works like a charm and I also like how you described it.

And I’ll follow your advice, I’ll create a function instead of a rule because I’ll need different kind of tables for my document.