Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-20-2021, 03:45 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

Thanks for your helpful reply, Graham.

I will study this in more detail this morning, but the main thing that strikes me is that you (and many other references I have looked at!) are suggesting running the macro on opening the document. This is the problem...

The user will first create a new document, such as the agenda for a meeting and, when it is complete, then run the macro to bring up the user form. This form has some simple questions about the type of document, the body for which it has been written and the date of the document. From these replies it constructs the rather abstruse document name that the filing system requires for archiving - eg:

VHT Mtg 04 Agenda 17 Apr 2021.pdf

The filing system was not my idea! But, as you can see, there is plenty of opportunity to mess up the name structure, especially by a not-very-computer-literate operator, which is why I devised the form.

So how can I prevent the macro from running immediately, but delay it until the user has written the document and wants to file it?
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 01:59 AM.


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