Inactive workbook auto save & close
Closed
rob
-
Mar 8, 2010 at 08:20 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 8, 2010 at 08:52 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 8, 2010 at 08:52 AM
Related:
- Inactive workbook auto save & close
- Save as pdf office 2007 - Download - Other
- Grand theft auto v free download no verification for pc - Download - Action and adventure
- Stop facebook auto refresh - Guide
- Grand theft auto iv download apk for pc - Download - Action and adventure
- Messenger auto save photos - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Mar 8, 2010 at 08:52 AM
Mar 8, 2010 at 08:52 AM
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