Hi Paul,


Thanks, this is basically the code I've used except originally I didn't have the "StrPwd" written in.


Unfortunately, when I run the macro, it doesn't produce the pdf's with passwords, however, it does produce the pdf's.


One interesting thing now is that it now comes up with a rune-time error '5853' invalid parameter on a piece of code that was previously fine.


The code is: .ActiveRecord = i


I've googled the error but can't seem to find the issue.


Would you know what it would be?


Thanks,