• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1555
  • Last Modified:

Disable Save/Save As... ? (VBA)

Hi everyone,

Is there a way to disable the Save & Save As... commands in Word/Excel/etc on a per document basis (macro/VBA)?

We have a problem with people who open a shared file to edit, then leave it open so no one else can edit it. Right now, most people go ahead save their own version locally, then they all email their local versions to someone to compare and merge.

The suggested solution we would like to try is that if a document is opened as read-only, then the Save and Save As... features are disabled, forcing the user to come back later and update the single shared file.

I know this may pose problems of it's own, but it's something we're at least willing to try, if possible.

Thanks in advance,
chris
0
pillbug22
Asked:
pillbug22
1 Solution
 
Jupiler78Commented:
Hi pillbug22,

disable the buttons with retreiving the commandbar with .CommandBars("File")
then disable the 2 buttons. Teh nyou have to create a local hook to prevent CTRL+S etc.

Cheers!

jupiler78
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now