How do you center a cell in EXCEL using Powershell? —
I was going nuts trying to find how to center my values in a excel spreadhseet. I finally found it at this site. here is the code: $Sheet.Range(“A1″, “B1″).MergeCells = $True $Sheet.Range(“A1″, “B1″).horizontalalignment = -4108 $Sheet.Cells.Item(1,1) = “november” What gets me is that we have to remember the value -4108 Let me know what you [...]