![]() |
|
#1
|
|||
|
|||
![]()
Hi,
Try tis bit of code in the "Thisworksheet" module. When the user close the workbook it should be save to the specified drive. Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.DisplayAlerts = False ActiveWorkbook.Save Filename:="C:\Users\laura\Documents\Excel\ExcelFiles\David.xlsm" Application.DisplayAlerts = True ActiveWorkbook.Close End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
pluviosilla | Word VBA | 4 | 11-06-2014 05:36 PM |
![]() |
etippelt | Word VBA | 6 | 04-08-2013 05:55 PM |
Programmatically convert Office documents to PDF from C# | hemaneelagiri | Office | 0 | 10-21-2011 06:07 AM |
outlook programmatically read an attachment into byte array | chriskaza81 | Outlook | 0 | 11-19-2010 01:03 AM |
Programmatically changing folder item selection | Richard Cook | Outlook | 0 | 02-09-2007 02:25 PM |