Excel gets a lock on Outlook PST file stored on USB drive

Steven Kogan

New Member
Joined
Aug 28, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
If an Outlook pst file is stored on a USB drive and inserted (i.e. Outlook is configured to use the pst file on the USB drive but Outlook is not loaded), then Excel is started (without opening Outlook), I am unable to eject the USB drive since Excel has a lock on the pst file. I would first have to exit Excel, then I can eject the USB drive.

This occurs even without loading an Excel file, just opening Excel itself does this. It also occurs if opening just MS Word. So it is not related to any special VBA code.

Is there a way to prevent Excel and other MS Office applications from getting a lock on the Outlook pst file?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I found the solution. In MS Outlook choose File, Options, People and the 'Display online status next to name' and 'Show user photographs when available' options are the features that cause other MS Office applications to connect to the Outlook PST. If 'Display online status next to name' is grayed out and selected you can make a registry setting to deselect it.
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\IM]
"TurnOffPresenceIcon"=dword:00000001
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top