View Single Post
 
Old 11-19-2021, 09:17 AM
PhilTilson PhilTilson is offline Windows 10 Office 2016
Novice
 
Join Date: Nov 2021
Posts: 4
PhilTilson is on a distinguished road
Default Opening Userform from button or menu

I have a simple requirement.

The user types up a document and, when complete, clicks a menu item or toolbar button which brings up a VBA userform. The user answers a few questions on the form, clicks submit and the VBA then prints the document to a PDF file with a name constructed from the userform answers.

I have created the userform and tested it, and everything works fine. I am pretty sure I can achieve the print-to-PDF function without problem. What I cannot do is find out how to open the userform from within the document!

I have gone round and round in circles playing with macros, templates etc, but I just want a simple explanation of how I can 1) put a button on a toolbar (or create a menu item) and 2) have that button or menu open the userform for the author.

Please help!
Reply With Quote