Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-14-2014, 04:30 PM
Charles Kenyon Charles Kenyon is offline How to start a Userform when Word is started Windows 7 64bit How to start a Userform when Word is started Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,535
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

My understanding is that it is best to create a new form rather than show the basic one. I believe this is a method of saving memory.

Code:
Sub StartUserForm()
    Dim myNewForm As myForm
    Set myNewForm = New myForm
    myNewForm.Show
    Unload myNewForm
    Set myNewForm = Nothing
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start a Userform when Word is started Getting started... Annby Project 3 11-06-2014 03:38 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
How to start a Userform when Word is started Is it possible to take an input from a UserForm in one document to a UserForm in a do BoringDavid Word VBA 5 05-09-2014 09:08 AM
How to start a Userform when Word is started Page footers have started ravl13 Word 3 11-21-2013 12:31 PM
Need Help Getting Started, Please. Thanks ChunkyZergling Outlook 1 04-24-2009 07:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:24 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