Example Excel VBA code to save encrypted PDFs

Hi all, I would really like to start using PDF creator 3.5.1 to save selected excel tabs as a password protected PDF - but I cannot get my test code to work. Does anyone have any working examples of Excel VBA code to save a tab as an encrypted PDF?

Many thanks