TFCJamieFay
Active Member
- Joined
- Oct 3, 2007
- Messages
- 480
Hi All,
I'm trying to stop users using "Save As" in their workbooks. Does anyone know how to do this?
So far I have...
...but it's not working.
Many thanks,
Jay
I'm trying to stop users using "Save As" in their workbooks. Does anyone know how to do this?
So far I have...
Code:
Private Sub Workbook_Open()
Dim oCtrl As Office.CommandBarControl
MyName = StrConv(Environ("username"), vbUpperCase)
If MyName <> "JAMIE.FAY" Then
'Disable Save As
For Each oCtrl In Application.CommandBars.FindControls(ID:=748)
oCtrl.Enabled = False
Next oCtrl
End If
End Sub
...but it's not working.
Many thanks,
Jay