What Skip suggested is good. Essentially, you only have to record about 3 or 4 documents (if that) because I don't know your level of knowledge...but at least 2 for sure.
After you record the process like:
Start Recording
OPEN document,
click unProtect,
type in pswd,
Stop Recording
You should either print out the macro code or write it out. Compare all 3/4 printouts/hand written notes for similarities. This will give you the baseline code you'll need. After that just plug-in some variable to take care of the "document name" and "password".
It's really not too hard and Skip's suggestion is on the money.
The only way it may be difficult is if the 'database' of Names & Passwords are in a flatfile or text file...and not in (let's say) Excel or Access. If that's the case then you'll have to convert it for easier document interaction.
--Miggyd
My mind not only wanders, it sometimes leaves completely.