Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disable Save/Save As - not working? | Excel Discussion (Misc queries) | |||
Enable/Disable SAVE AS button from code | Excel Programming | |||
Disable save & save as then return message... | Excel Programming | |||
disable save and saveas from menubar and save via command button | Excel Programming | |||
Disable save, save as, but allow save via command button | Excel Programming |