G
Guest
Hi
I am trying to create a read only open access copy of a file that is password protected. Trouble is I can't remove the password from the copy only and force read only onto the copy
This is the code I tried
Private Sub CommandButton1_Click(
Application.DisplayAlerts = Fals
Kill "S:\Common\Gx\x.XLS
ActiveWorkbook.SaveAs ("s:\unit\q.xls"), FileFormat:=xlNormal, Password:="", WriteResPassword:=" ", ReadOnlyRecommended:=True
, CreateBackup:=Fals
ActiveWorkbook.SaveCopyAs ("S:\Common\Gx\x.XLS"
Application.DisplayAlerts = Tru
ActiveWorkbook.Clos
End Su
Appreciate any help.
I am trying to create a read only open access copy of a file that is password protected. Trouble is I can't remove the password from the copy only and force read only onto the copy
This is the code I tried
Private Sub CommandButton1_Click(
Application.DisplayAlerts = Fals
Kill "S:\Common\Gx\x.XLS
ActiveWorkbook.SaveAs ("s:\unit\q.xls"), FileFormat:=xlNormal, Password:="", WriteResPassword:=" ", ReadOnlyRecommended:=True
, CreateBackup:=Fals
ActiveWorkbook.SaveCopyAs ("S:\Common\Gx\x.XLS"
Application.DisplayAlerts = Tru
ActiveWorkbook.Clos
End Su
Appreciate any help.