csilabgirl
Active Member
- Joined
- Aug 14, 2009
- Messages
- 359
Excel 2002
I have this code which is saving a workbook. I want it to save the workbook as read only, so that the next time it is opened it is read only. But all I have been able to do is a read only recommend, where the next time it is opened it asks the user if they want to open it in read only or not. I dont want them to have the option. What do I need to add to my code? Thank you for the help.
Sub SaveMarketing()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Dim FileName As String<o></o>
FileName = Range("I3")<o></o>
MsgBox FileName<o></o>
ActiveWorkbook.SaveAs FileName:= _<o></o>
"\\Server\chromosomal labs\Immigration\RS_AMTC\" & FileName, FileFormat:= _<o></o>
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=True _<o></o>
, CreateBackup:=False<o></o>
<o></o>
End Sub
I have this code which is saving a workbook. I want it to save the workbook as read only, so that the next time it is opened it is read only. But all I have been able to do is a read only recommend, where the next time it is opened it asks the user if they want to open it in read only or not. I dont want them to have the option. What do I need to add to my code? Thank you for the help.
Sub SaveMarketing()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Dim FileName As String<o></o>
FileName = Range("I3")<o></o>
MsgBox FileName<o></o>
ActiveWorkbook.SaveAs FileName:= _<o></o>
"\\Server\chromosomal labs\Immigration\RS_AMTC\" & FileName, FileFormat:= _<o></o>
xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=True _<o></o>
, CreateBackup:=False<o></o>
<o></o>
End Sub