A family of Microsoft word processing software products for creating web, email, and print documents.
Thanks Stephan, but the command is correctly assigned and works perfectly except when the initial alignment is left.
In the screenshots you can see the initial situation of four paragraphs, one with each of the horizontal alignments, before applying the command and the final situation after applying it. As can be seen in all cases it is aligned to the left, except in the fourth paragraph, which was initially aligned to the left, which justifies it.
The result is the same whether I apply the command button or the keyboard shortcut.