Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a sheet that will be routed throughout a department. When
opened, it runs a macro that collects data. At the end of the collection process, I'd like it to save, close and send to the next receipient. However, if I set the macro to simply close the file, it prompts the user to save then prompts to send. Is there a way to skip these routing messages and just send it? Any other hints on using Routing Slips in VBA code? Thanks - John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could try something like this..... I assume the routing has already been
set up........put the code in ThisWorkBook module. Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveWorkbook.Route Application.DisplayAlerts = False ActiveWorkbook.Save Application.DisplayAlerts = True End Sub -- Cheers Nigel "John Michl" wrote in message oups.com... I have a sheet that will be routed throughout a department. When opened, it runs a macro that collects data. At the end of the collection process, I'd like it to save, close and send to the next receipient. However, if I set the macro to simply close the file, it prompts the user to save then prompts to send. Is there a way to skip these routing messages and just send it? Any other hints on using Routing Slips in VBA code? Thanks - John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to delete duplicate file example route 2_2:1 or route 2_2:2 | Excel Discussion (Misc queries) | |||
Placing a code before Save & Save As | Excel Programming | |||
How can I save an other route in my Tools bar-options-save? IT | Excel Discussion (Misc queries) | |||
When set to route, route with on open worksheet...not the hidden o | Excel Programming | |||
Automatically run VB code on workbook save event | Excel Programming |