0
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 1 year has passed since last update.

Wordを使用するexeやらvbsがタスクスケジューラで動かない時

Posted at

はじめに

Visual StudioでMicrosoft Word XX.X Object Libraryとか追加したexe、またはvbsでwordを操作したりすることがあると思います。
exeとかvbs単体では正常に動くけど、定期的に実行させたくてタスクスケジューラに登録した途端に動かない!
人生そういうことばかりですよねMicrosoft…。

解決方法

ここに「Desktop」フォルダを作るだけ!

  • 32bitのWordを使っている場合
    C:¥Windows¥System32¥config¥systemprofile¥
  • 64bitのWordを使っている場合
    C:¥Windows¥SysWOW64¥config¥systemprofile¥

だいたいはこれで解決すると思いますが、それでもNGの場合…

以下のフォルダにアクセス権限を持たせる

  • 32bitのWordを使っている場合
    C:¥Windows¥System32¥config¥systemprofile¥AppData¥Roaming¥Microsoft
    C:¥Windows¥System32¥config¥systemprofile¥AppData¥Local¥Microsoft
  • 64bitのWordを使っている場合
    C:¥Windows¥SysWOW64¥config¥systemprofile¥AppData¥Roaming¥Microsoft
    C:¥Windows¥SysWOW64¥config¥systemprofile¥AppData¥Local¥Microsoft

参考

実行されないマクロの修正

0
0
0

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
0
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?