Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-19-2021, 09:17 AM
PhilTilson PhilTilson is offline Opening Userform from button or menu Windows 10 Opening Userform from button or menu Office 2016
Novice
Opening Userform from button or menu
 
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
 

Tags
menu bar, user forms, vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform button: the object invoked has disconnected from its clients letcall Word VBA 2 08-25-2021 07:58 AM
.DOTM files not opening as .DOCX with userform mktate Word VBA 3 02-26-2016 02:17 PM
Create a command button that will insert another drop down menu Tinamation Word VBA 1 11-06-2015 03:11 PM
Executing a userform with a command button spc94 Word VBA 2 06-24-2015 10:08 PM
VBA Code in a UserForm module to delete a Command Button which opens the userform Simoninparis Word VBA 2 09-21-2014 03:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft