+ Reply to Thread
Results 1 to 4 of 4

EMAIL IF....

  1. #1
    Wayne
    Guest

    EMAIL IF....

    Using MS Excel 97 with MS XP os


    If a cells contents are of a greater value than say 1,000
    is it possible for the excel workbook to be emailed upon
    saving of the workbook without the person being aware ?

    Is there any links to information on this subject???

    Thanks in advance.

    Wayne

  2. #2
    Jim Thomlinson
    Guest

    RE: EMAIL IF....

    Check out Rons site @ http://www.rondebruin.nl/

    "Wayne" wrote:

    > Using MS Excel 97 with MS XP os
    >
    >
    > If a cells contents are of a greater value than say 1,000
    > is it possible for the excel workbook to be emailed upon
    > saving of the workbook without the person being aware ?
    >
    > Is there any links to information on this subject???
    >
    > Thanks in advance.
    >
    > Wayne
    >


  3. #3
    Charles Harmon
    Guest

    Re: EMAIL IF....

    This code works in Excel 2000, MS XP. Test before you try it. Also if you
    have Virus protection it may cause a warning.

    Charles

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
    Cancel As Boolean)
    ActiveWorkbook.HasRoutingSlip = True
    With ActiveWorkbook.RoutingSlip
    If Sheets("Sheet1").Range("A1") > 1000 Then
    .Delivery = xlOneAfterAnother
    .Subject = "Hello"
    .Message = "TEST"
    .Recipients = "Your E-Mail Address"
    .ReturnWhenDone = False
    ActiveWorkbook.Route
    End If
    End With
    End Sub
    "Jim Thomlinson" <[email protected]> wrote in message
    news:[email protected]...
    > Check out Rons site @ http://www.rondebruin.nl/
    >
    > "Wayne" wrote:
    >
    >> Using MS Excel 97 with MS XP os
    >>
    >>
    >> If a cells contents are of a greater value than say 1,000
    >> is it possible for the excel workbook to be emailed upon
    >> saving of the workbook without the person being aware ?
    >>
    >> Is there any links to information on this subject???
    >>
    >> Thanks in advance.
    >>
    >> Wayne
    >>




  4. #4
    Gwen
    Guest

    Re: EMAIL IF....

    That sounds good but will work only if you put it wihtin the workbook sheet
    code.
    Not in a separate module.

    Correct me if I am wrong.

    Thanks.



    "Charles Harmon" <[email protected]> wrote in message
    news:[email protected]...
    > This code works in Excel 2000, MS XP. Test before you try it. Also if you
    > have Virus protection it may cause a warning.
    >
    > Charles
    >
    > Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
    > Cancel As Boolean)
    > ActiveWorkbook.HasRoutingSlip = True
    > With ActiveWorkbook.RoutingSlip
    > If Sheets("Sheet1").Range("A1") > 1000 Then
    > .Delivery = xlOneAfterAnother
    > .Subject = "Hello"
    > .Message = "TEST"
    > .Recipients = "Your E-Mail Address"
    > .ReturnWhenDone = False
    > ActiveWorkbook.Route
    > End If
    > End With
    > End Sub
    > "Jim Thomlinson" <[email protected]> wrote in
    > message news:[email protected]...
    >> Check out Rons site @ http://www.rondebruin.nl/
    >>
    >> "Wayne" wrote:
    >>
    >>> Using MS Excel 97 with MS XP os
    >>>
    >>>
    >>> If a cells contents are of a greater value than say 1,000
    >>> is it possible for the excel workbook to be emailed upon
    >>> saving of the workbook without the person being aware ?
    >>>
    >>> Is there any links to information on this subject???
    >>>
    >>> Thanks in advance.
    >>>
    >>> Wayne
    >>>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1