Link to home
Start Free TrialLog in
Avatar of cyle
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!
Avatar of qwaletee
qwaletee

Look atthe parameters for Word's SaveAs... one of them sets the file to read-only.
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cyle

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.
Avatar of cyle

ASKER

Final code,
                   wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc"  , , , , , ,True, , , , , True
                   wordobj.fileclose
Thanks!