![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
When a user closes the spreadsheet, it needs to save and automatically email to a certain recipient based on what they location they selected in a combo box that is in the spreadsheet.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Your doubt is how to run that code when the user closes the book ? or how to save ? or how to email the workbook ?
First. Use the Workbook_BeforeClose event. Two. ThisWorkbook.Save Three. Depends on what mail system you're using. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|