Inactive workbook auto save & close
Closed
rob
-
8 Mar 2010 à 08:20
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 8 Mar 2010 à 08:52
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 8 Mar 2010 à 08:52
Related:
- Inactive workbook auto save & close
- Save as pdf office 2007 - Download - Other
- Messenger auto save photos - Guide
- Android auto apk - Download - Other
- What is auto download mms - Guide
- Nvidia auto detect - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
8 Mar 2010 à 08:52
8 Mar 2010 à 08:52
Rob see if this works
Private Sub Workbook_Open()
Dim toProcessSheets As Variant
Dim thisSheet As Variant
'name of sheets to process
toProcessSheets = Array("Sheet1", "niel")
For Each thisSheet In toProcessSheets
Sheets(thisSheet).Select
Call ThisWorkbook.SendEMail
Next
'save the work book
ActiveWorkbook.Save
'close excel application
Application.Quit
End Sub
Private Sub Workbook_Open()
Dim toProcessSheets As Variant
Dim thisSheet As Variant
'name of sheets to process
toProcessSheets = Array("Sheet1", "niel")
For Each thisSheet In toProcessSheets
Sheets(thisSheet).Select
Call ThisWorkbook.SendEMail
Next
'save the work book
ActiveWorkbook.Save
'close excel application
Application.Quit
End Sub