Changing file attribute when exporting to word.

Can you change the attribute of an exported document to Word? I need the saved Word document to be read-only.
Part of the code that displays the generated document and saving.

wordobj.AppShow
wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc"
Thanks!
cyleAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
qwaleteeConnect With a Mentor Commented:
SaveAs(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter)

ReadOnlyRecommended   Optional Variant. True to have Word suggest read-only status whenever the document is opened.


So, .SaveAs "c:\Work\SMP\" & CNno & ".doc" , , , , , , True
0
 
qwaleteeCommented:
Look atthe parameters for Word's SaveAs... one of them sets the file to read-only.
0
 
cyleAuthor Commented:
Yes, but the user has to set this. I'd like the user not be able to edit the file that was converted from Notes to Word.
0
 
cyleAuthor Commented:
Final code,
                   wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc"  , , , , , ,True, , , , , True
                   wordobj.fileclose
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.