LoginSignup
0
0

More than 1 year has passed since last update.

[ExcelVBA]64ビット版AcrobatReaderでの印刷処理

Last updated at Posted at 2022-01-08

はじめに

先日、AcrobatReaderの64ビット版へのアップデートがありましたが、これによって、印刷処理を行うエクセルマクロが動作しなくなってしまいました。

32ビット版AcrobatReaderでの印刷処理

参照設定Windows Script Host Object Modelを追加して、以下のコマンドで印刷することができました。

Dim wshShellObj As IWshRuntimeLibrary.WshShell
strShellCommand = "AcroRd32.exe /t " & 印刷ファイルのパス & " " & プリンタの名前
wshShellObj.Run (strShellCommand)

64ビット版AcrobatReaderでの印刷処理

実行ファイル名前が変わってしまっているので、AcroRd32.exeAcrobat.exeに変更する必要があります。

Dim wshShellObj As IWshRuntimeLibrary.WshShell
strShellCommand = "Acrobat.exe /t " & 印刷ファイルのパス & " " & プリンタの名前
wshShellObj.Run (strShellCommand)

参照

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