PC Review


Reply
Thread Tools Rate Thread

Code to automatically email when xls file is save?

 
 
sherifffruitfly
Guest
Posts: n/a
 
      14th Jan 2009
Hi all,

I'm putting a little xl sheet out on a network drive for various
people to put bug reports in. It would be sweet if it would send me an
email whenever the file was saved. Is there code out here already that
achieves this?


Thanks in advance,

-sff
 
Reply With Quote
 
 
 
 
sherifffruitfly
Guest
Posts: n/a
 
      14th Jan 2009
On Jan 13, 9:49*pm, sherifffruitfly <sherifffruit...@gmail.com> wrote:
> Hi all,
>
> I'm putting a little xl sheet out on a network drive for various
> people to put bug reports in. It would be sweet if it would send me an
> email whenever the file was saved. Is there code out here already that
> achieves this?
>
> Thanks in advance,
>
> -sff


So googling around yielded what I suppose is the obvious answer:

Sub Enable()
Application.EnableEvents = True
End Sub

Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

ActiveWorkbook.SendMail _
Recipients:="(E-Mail Removed)", _
Subject:="Bug Entered"

End Sub


And it results in the obvious problem: the #$^%$#^#$ security warning
that is un-turn-off-able. Sheesh.

We're using Office 2003 - what's the least intrusive workaround? Would
prefer just VBA code, if possible.

I knew there was a reason I don't do vba. grrr.
 
Reply With Quote
 
Brad
Guest
Posts: n/a
 
      20th Jan 2009
what email program is your company using?

"sherifffruitfly" wrote:

> Hi all,
>
> I'm putting a little xl sheet out on a network drive for various
> people to put bug reports in. It would be sweet if it would send me an
> email whenever the file was saved. Is there code out here already that
> achieves this?
>
>
> Thanks in advance,
>
> -sff
>

 
Reply With Quote
 
sherifffruitfly
Guest
Posts: n/a
 
      20th Jan 2009
On Jan 19, 7:21*pm, Brad <B...@discussions.microsoft.com> wrote:
> what email program is your company using?
>
> "sherifffruitfly" wrote:
> > Hi all,

>
> > I'm putting a little xl sheet out on a network drive for various
> > people to put bug reports in. It would be sweet if it would send me an
> > email whenever the file was saved. Is there code out here already that
> > achieves this?

>
> > Thanks in advance,

>
> > -sff


Outlook 2003.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save Email as .msg File with Code Peter Hibbs Microsoft Outlook VBA Programming 5 10th Aug 2009 04:08 PM
VBA Code to save file and send as email coolminded2005 Webmaster / Programming 1 14th Apr 2009 02:12 PM
Automatically Save and Route Code John Michl Microsoft Excel Programming 1 4th Nov 2005 05:17 PM
Save email automatically as a text file then run an appliaction =?Utf-8?B?TU1vdXNlOTk=?= Microsoft Outlook Discussion 0 20th Jul 2005 04:51 PM
Automatically run VB code on workbook save event Tim Microsoft Excel Programming 2 10th Dec 2003 08:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.