LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Disable 'Save/Save As', Enable 'Save as PDF'

I'm working in Excel 2010. I'd like users of this particular
spreadsheet to be able to 'Save as PDF', but I do not want users to
be able to use 'Save' or 'Save as'.

Is there a code for this?

Thanks in advance for any help.

BD


You can use the Workbook_BeforeSave event to 'trap' people trying to
use Save/SaveAs, set Cancel=True, then use the ExportAsFixedFormat
method for the worksheet/workbook as suits your need. Easiest way to
get code for this is to go through the steps manually while the macro
recorder is running, clean up the 'junk' that the recorder so
generously donates, and put code in the Workbook_BeforeSave event to
'Call' the macro.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Save/Save As - not working? Silena K-K Excel Discussion (Misc queries) 3 December 11th 07 03:09 PM
Enable/Disable SAVE AS button from code chris Excel Programming 6 May 3rd 07 01:14 PM
Disable save & save as then return message... J.W. Aldridge Excel Programming 2 September 15th 06 04:35 PM
disable save and saveas from menubar and save via command button Steve E Excel Programming 5 September 13th 06 11:51 PM
Disable save, save as, but allow save via command button TimN Excel Programming 10 September 1st 06 07:05 PM


All times are GMT +1. The time now is 03:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"