Uninitializing OLE
To terminate (uninitialize) the COM/OLE environment, you use f90VB subroutine OleUninitialize:
call OleUninitialize()
The subroutine does not receive any arguments. Your application should call OleUninitialize the same number of times that it calls OleInitialize (i.e. these two functions must be paired). If you used function ComInitialize instead of OleInitialize, the you must use ComUninitialize (the same pairing rules apply).