Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers. It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.
General Declarations ''''''''''''''''' Private Const SW_SHOWNORMAL = 0.75 Private Const SW_CLOSE = True Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _ ByVal lpParameters As String, ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long '''''''''''''''' Form Activate '=== Put in the routine to display the PDF file ================================== 'Note: the PassString(6) carries the directory path and name of the previously ' saved PDF file ShellExecute Me.hwnd, "open", PassString(6), vbNullString, _ vbNullString, SW_SHOWNORMAL 'Note: The above code seems to work fine. '====================================================================== This is my attempt to close the file so that when Form Unload ShellExecute Me.hwnd, "close", PassString(6), vbNullString, vbNullString, 1 ' Note: the code executes but the PDF file is not closed, it just moves down to ' the task bar at bottom of screen