Here is an example of how to create a matrix with Office Math. If you want to use the example in your own formula, you can copy it to the Commands window using the clipboard.
font sans bold size *2 A =left[matrix{A-11#A-12#dotsaxis#A-{1n}##A-21#{} #{}#A-{2n}##dotsvert#{}#{}#dotsvert##A-{n1}#A-{n2}#dotsaxis#A-nn}right]