The opening of the file is prepared in this line:
r = ShellExecute(hwnd, "open", strFilePath, "", "", lngShowCmd)
To print a file change it to:
r = ShellExecute(hwnd, "print", strFilePath, "", "", lngShowCmd)
To hide the program window change "vbNormalFocus" in the calling function to "vbHide"