I am using a shell and wait routine that looks like the following. When it says "kernel32" what are the possible limitations? For example, will this not work on OS's that are 64 bit or Office versions that are 64 bit? Or should it work for both. It seems that it works for a 64 bit OS, but not sure about a 64 bit Office version since I have not test bench for that at the moment.


-----

'Libraries (DLL's)
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long

'Function MeShellAndWait(szCommandLine As String, Optional iWindowState As Integer = vbHide) As Boolean
'VBA Shell Options
Function MeShellAndWait(szCommandLine As String, Optional iWindowState As Integer = vbNormalFocus) As Boolean