Hi,
Here is the syntax for .protect which i had used.
odoc.Protect(Type, NoReset, Password, UseIRM, EnforceStyleLock)
What iam trying is I have a form in word , where i have to restric users to only fill in the form. so there is a option for it , Tools--> protect Document-- >Formatting...