Monday, November 25, 2019

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

【PowerPoint】

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()

【Word】

The same as old post. I just changed capitalization.

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

【Excel】

Excel is very similar to Word.

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



【Outlook】

This one is simpler than I thought.

start outlook

【OneNote】

start onenote



No comments:

Post a Comment