我需要一个简单的例子来说明如何在word中添加新文本并将该文本更改为超链接
你能帮我吗?
$word = New-Object -ComObject Word.Application
$word.visible = $true
$document = $word.Documents.Add()
$document.Activate()
$range = $document.content
$null = $document.HyperLinks.Add($Range,
'https://www.google.com/',$null,$null,'This is Google')
谢谢