Hi Mashmallow,
How does the user open the file without the password? Through a VBA script?
Anyway, you may wish to look into the WorkbookBeforeSave event. For example:
Private Sub App_WorkbookBeforeSave(ByV
ByVal SaveAsUI As Boolean, Cancel as Boolean)
'Not sure I'm on the right path here. Anyway, try this, change the filename as need be
ActiveWorkbook.SaveAs Filename:="C:\Excel Files\B.xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False
, CreateBackup:=False
End Sub
Regards,
Justin
Main Topics
Browse All Topics





by: tapankhatriPosted on 2004-03-24 at 02:40:20ID: 10666004
Hello Mashmallow,
SaveAs Filename:="Book", password:=""
Use,
ActiveWorkbook.SaveAs Filename:="Book", password:=""
insted of ActiveWorkbook you can use,
Workbooks("WorkbookName").
In general (with out macro)
Goto File > Save As > Press Tool Button > Make the password field blank and save the file.
Tapan.