Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-05-2011, 08:53 PM
Joe Patrick Joe Patrick is offline Word doc bug when closing from userform command button click macro Windows 7 64bit Word doc bug when closing from userform command button click macro Office 2007
Advanced Beginner
Word doc bug when closing from userform command button click macro
 
Join Date: May 2011
Posts: 33
Joe Patrick is on a distinguished road
Default

Ugh, never mind, that was dumb. It's bugging out on close because it was already in the process of closing.

I changed the macro to this and it's good to go:

Sub CloseDontSave()
ActiveDocument.Saved = True
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word doc bug when closing from userform command button click macro Launch macro sub after hitting "create pdf" button in word webharvest Word VBA 1 06-29-2011 04:56 PM
Word doc bug when closing from userform command button click macro Right click in Macro MShroff Word VBA 4 04-05-2011 09:00 PM
Word doc bug when closing from userform command button click macro Command Button cksm4 Word VBA 7 02-27-2011 08:47 PM
Button click event from a noob jsampson Outlook 0 10-12-2010 01:48 PM
Add-In:How to add command right click command bar phang Outlook 0 01-15-2007 02:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:48 AM.


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