oWord = createobject("Word.Application") lcFile = getfile('DOC') if empty(lcfile) return endif with oWord .Documents.Open(lcFile) *.Application.CommandBars("Standard").Controls("Save").Enabled = .F. .Application.CommandBars("File").Controls("Save As...").Enabled = .F. .visible = .t. endwithsince we need to be able to restore it back before an attempt to close Word file.