C
ChuckN
I have used a visual basic routine to save the date and time when I save an
Excel file.
Private Sub Workbook_BeforeSave(By Val SaveAsUI As Boolean, Cancel As
Boolean)
Worksheets("Worksheet name").Range("Celled").Value = Now()
End Sub
I recently saved the file as an *.xlsm file with a password required to open
the file. (A password is not required to modify the file)
As long as the file is password protected, the routine does not work. As
soon as I remove the password to open the file, the routine works as it
normally does.
In the trust center:
I have enabled all Macros.
I have checked "Trust access to the VBA ..."
What is happening?
Is there a solution?
I think Microsoft is making security so complicated that most people will
have to undo much of the security to figure out how to get things to work.
I suppose Microsoft can claim that is not their fault that there are
security problems. The tools are there to protect the files, the end users
are just not using them properly.
Excel file.
Private Sub Workbook_BeforeSave(By Val SaveAsUI As Boolean, Cancel As
Boolean)
Worksheets("Worksheet name").Range("Celled").Value = Now()
End Sub
I recently saved the file as an *.xlsm file with a password required to open
the file. (A password is not required to modify the file)
As long as the file is password protected, the routine does not work. As
soon as I remove the password to open the file, the routine works as it
normally does.
In the trust center:
I have enabled all Macros.
I have checked "Trust access to the VBA ..."
What is happening?
Is there a solution?
I think Microsoft is making security so complicated that most people will
have to undo much of the security to figure out how to get things to work.
I suppose Microsoft can claim that is not their fault that there are
security problems. The tools are there to protect the files, the end users
are just not using them properly.