Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2015, 05:06 PM
Guessed's Avatar
Guessed Guessed is offline DocumentBeforeSave Event doesn't apply to all exports to PDF Windows 7 32bit DocumentBeforeSave Event doesn't apply to all exports to PDF Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I don't have a good answer for this problem but I do have some ramblings that might help.



To me that appears to be a document export event rather than a document save event so I'm not altogether surprised that the event doesn't get trapped by documentbeforesave. For instance, if the document is in a saved state and I make some changes and click that button and follow it through to completion, the resulting PDF has those changes but I can see the Word document is unsaved. Recording the step tells me I've run ExportAsFixedFormat.

It might be possible to handle that particular pathway by intercepting the built-in command but I couldn't find a likely contender for this.

Another alternative may be to edit the ribbon to either hide that button (FileSaveAsPdfOrXps) or replace it with one of your own.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
File beforeSave Event Megazoid Word VBA 3 09-14-2014 01:41 AM
Hyperlinks in Calendar Event? komobu Outlook 0 07-16-2014 08:09 AM
NEWB to Macros - formatting exports EC37 Excel Programming 52 06-25-2014 06:26 AM
Workbook_Open event do not working? beginner Excel Programming 8 04-11-2013 02:37 PM
Catch event before next slide PetLahev PowerPoint 0 10-21-2011 03:29 AM

Other Forums: Access Forums

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