1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SharePointOnline内のExcelには、ファイルオープン時の自動リンクが機能せず

Posted at

どうも、EXCELにある外部参照のリンクですが、SharePointOnline(SharePoint)では自動更新ができないと発覚。
MSも認めた。

ところがPowerShellから起動すると更新される➜MSにフィードバックしたがいつ対応するか…

PowerShell
$excel = New-Object -ComObject Excel.Application
$excel.Visible = $false      # 画面上に表示させない
$excel.DisplayAlerts = $true # 警告メッセージは表示する

# 現在のディレクトリの絶対パスを取得
$currentPath = (Convert-Path .)

# 対象の Excel ファイル名
$filename = "sample.xlsx"
$book = $excel.Workbooks.Open($currentPath +"/"+ $filename)

# 上書き保存
$book.Save()
# ブックを閉じる
$excel.Workbooks.Close()
$excel.Quit()

[System.Runtime.Interopservices.Marshal]::ReleaseComObject($book)
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($excel)

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?