Monday, November 25, 2019

PowerShell one-liner to start Microsoft Office blank documents to work on instantly


I don't know why. Somehow PowerPoint is always visible and no "visible" property to set.

$PowerPoint=New-Object -ComObject Powerpoint.Application ; $PowerPoint.Presentations.Add()


The same as old post. I just changed capitalization.

$Word=New-Object -ComObject Word.Application ; $Word.visible=$true ; $Word.Documents.Add()


Excel is very similar to Word.

$Excel=New-Object -ComObject Excel.Application ; $Excel.visible=$true ; $Excel.Workbooks.Add()


This one is simpler than I thought.

start outlook


start onenote

No comments:

Post a Comment