Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-25-2020, 07:01 PM
Just Learning Just Learning is offline Show Userform hide active document only Windows 10 Show Userform hide active document only Office 2019
Novice
Show Userform hide active document only
 
Join Date: Mar 2020
Posts: 7
Just Learning is on a distinguished road
Default

Hi Guessed,


Thanks for the suggestion.


Here are the details



- Private Sub Document_Open()
UserForm1.Show
End Sub
-Private Sub CancelButton_Click()
UserForm1.Hide
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub


- The code is in the document only
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make userform and active document stand side by side matapagi2019 Word VBA 1 03-12-2019 06:09 PM
Show Userform hide active document only Show userform without losing document focus? Or other method to get a graphic to pop? AlexR Word VBA 7 03-31-2013 12:17 PM
Show Userform hide active document only Show Hide info trintukaz Word 3 12-29-2011 12:23 AM
Show Userform hide active document only VBA to show/hide tables ccordner Word VBA 2 07-04-2011 03:00 AM
VBA to show/hide tables ccordner Outlook 0 07-01-2011 05:10 AM

Other Forums: Access Forums

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