I have major difficulties escaping a semicolon in my powershell script.
At first I open up a excel application, create a workbook and worksheet. So far so good.
I can write to cells but when I try to write a semicolon to a cell, an error (HRESULT: 0x800A03EC) occurs.
$rootsheet.Cells(5,5)='=SUM(A1;A2)'
For example the semicolon in this SUM-function causes the error.
I tried various possible escape format but nothing seems to work.
The solutions in the following articles do not apply in this case:
escape-ampersands-semicolons
what-is-the-literal-escape-character-in-powershell