Hi All
I have a HTA which when a button is clicked, will open a microsoft word document.
The microsoft word document contains forms (ie check boxes, textbox, listbox, etc)
I can get the document to open in MS Word using vbscript but I would like to know how would I protect the document so that users can use the form to make some selection.
The code that i have to open the ms word document is
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Add("filepath")
where filepath is the path of the document.
In VBA, I can protect the document by using the statement below
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
Thank you
Bill
I have a HTA which when a button is clicked, will open a microsoft word document.
The microsoft word document contains forms (ie check boxes, textbox, listbox, etc)
I can get the document to open in MS Word using vbscript but I would like to know how would I protect the document so that users can use the form to make some selection.
The code that i have to open the ms word document is
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Add("filepath")
where filepath is the path of the document.
In VBA, I can protect the document by using the statement below
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
Thank you
Bill