![]() |
![]() |
|
|||||||
| 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: Feb 2002
Posts: 10
|
Anyone know a macro or some VB code that will do this:
1. save the current file 2. E-mail it to a certain address(probably gonna have to close the file 1st right) so is that possible? will the macro continue to run once i close the file? Can excel e-mail for a start let alone e-mail attachments? Any help appreciated |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
How about this?
Code:
Sub SaveAndMail() ActiveWorkbook.Save ActiveWorkbook.SendMail "anyone@somewhere.com" End Sub D |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 10
|
yeah looks good, but will it send while the file is still open? spose i can just popup a messgae saying "close the file before sending the e-mail u sonofa.... no good...."
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2002
Posts: 10
|
Ohhh very nice! Excel even makes a temporary file to send. Me like!
Thanks man |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|