cyle
asked on
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!
Part of the code that displays the generated document and saving.
wordobj.AppShow
wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc"
Thanks!
Look atthe parameters for Word's SaveAs... one of them sets the file to read-only.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
ASKER
Final code,
wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc" , , , , , ,True, , , , , True
wordobj.fileclose
Thanks!
wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc" , , , , , ,True, , , , , True
wordobj.fileclose
Thanks!