LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Email notification

I have a "Personal.xls" macro which I run up to and including the following
|SaveAs|

ActiveWorkbook.SaveAs Filename:="\\cav-new\files\diur" & Mid(MyValue, 4, 2)
& Right(MyValue, 2) & ".csv", FileFormat:=xlCSV

Up to this point the Macro works just fine. Now I want to notify someone via
email that the file has been saved in the particular directory.

I thought I could use the following:

Application.Run "'" & ActiveWorkbook.Name & "'!Mail_Selection_Outlook_Body"

However, this is trying to run the "Mail_Selection_Outlook_Body" from the
saved file which is by now called "diur0107" and not from the "Personal.xls"
module.

how do I change the Application.Run command to run from the Personal.xls?

something like:
Application.Run "'" & Personal.xls & "'!Mail_Selection_Outlook_Body" ???????
but something doesn't work right...help
thanks

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Notification to my email address tompl Excel Discussion (Misc queries) 3 March 11th 10 01:11 PM
Email Notification of Responses JLatham Excel Discussion (Misc queries) 2 January 26th 10 02:38 PM
can an automated notification (on xls file changes) email can be anat_ny Excel Discussion (Misc queries) 1 July 10th 07 07:16 PM
email Notification from Excel bobbyfaescotland Excel Discussion (Misc queries) 1 July 20th 06 06:19 PM
Email notification kelly Excel Programming 3 February 26th 04 08:30 PM


All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"