Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Gerritt Bakker   on Sep 15 In MS Office Category.

  
Question Answered By: Poppy Brown   on Sep 15

I could not understand the User name option. Now I am also
using the user name and able to save.
The final code  is (for other users)

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
a = Environ("Username")
'msgbox a
If a = "stalukder" Then ' Put the user name here. Check the same with the
message box.
Cancel = False
Else
Cancel = True
End If
End Sub

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Disable save from Ctrl S Or get search suggestion and latest updates.


Tagged: