I have a multi-page Excel Userform that is currently set to print to the user's default printer upon clicking a command button. I would like to change this so that the form prints to PDF but I can't seem to find the right code.

If possible, I would like all three pages of the userform to print to one PDF file.

Any help would be much appreciated!