+ Reply to Thread
Results 1 to 4 of 4

sendmail to variable

  1. #1
    Looker
    Guest

    sendmail to variable


    I need to send mail to a user whose value is in row E41
    but cannot get it to work
    can this be done?

    ActiveWorkbook.SendMail Recipients:=Range("E41").Value,
    Subject:=(Range("A8").Value) & "-" & (Range("D22").Value) & Format(Date,
    "yyyy-mm-dd") ActiveWindow.Close SaveChanges:=False
    --
    NO SPAM
    remove X from Xname@Xdomain



  2. #2
    Ron de Bruin
    Guest

    Re: sendmail to variable

    Hi Looker

    Try this

    Try this

    ActiveWorkbook.SendMail Recipients:=Range("E41").Value, _
    Subject:=Range("A8").Value & "-" & Range("D22").Value & Format(Date, "yyyy-mm-dd")
    ActiveWindow.Close SaveChanges:=False




    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Looker" <[email protected]> wrote in message news:[email protected]...
    >
    > I need to send mail to a user whose value is in row E41
    > but cannot get it to work
    > can this be done?
    >
    > ActiveWorkbook.SendMail Recipients:=Range("E41").Value,
    > Subject:=(Range("A8").Value) & "-" & (Range("D22").Value) & Format(Date,
    > "yyyy-mm-dd") ActiveWindow.Close SaveChanges:=False
    > --
    > NO SPAM
    > remove X from Xname@Xdomain
    >
    >




  3. #3
    Looker
    Guest

    Re: sendmail to variable

    nope still get the error 1004 ambigous recipient name found

    "Ron de Bruin" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi Looker
    >
    > Try this
    >
    > Try this
    >
    > ActiveWorkbook.SendMail Recipients:=Range("E41").Value, _
    > Subject:=Range("A8").Value & "-" & Range("D22").Value & Format(Date,

    "yyyy-mm-dd")
    > ActiveWindow.Close SaveChanges:=False
    >
    >
    >
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    >
    >
    > "Looker" <[email protected]> wrote in message

    news:[email protected]...
    > >
    > > I need to send mail to a user whose value is in row E41
    > > but cannot get it to work
    > > can this be done?
    > >
    > > ActiveWorkbook.SendMail Recipients:=Range("E41").Value,
    > > Subject:=(Range("A8").Value) & "-" & (Range("D22").Value) & Format(Date,
    > > "yyyy-mm-dd") ActiveWindow.Close SaveChanges:=False
    > > --
    > > NO SPAM
    > > remove X from Xname@Xdomain
    > >
    > >

    >
    >





    Attached Images Attached Images

  4. #4
    Ron de Bruin
    Guest

    Re: sendmail to variable

    What do you have in E41

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Looker" <[email protected]> wrote in message news:[email protected]...
    > nope still get the error 1004 ambigous recipient name found
    >
    > "Ron de Bruin" <[email protected]> wrote in message
    > news:%[email protected]...
    >> Hi Looker
    >>
    >> Try this
    >>
    >> Try this
    >>
    >> ActiveWorkbook.SendMail Recipients:=Range("E41").Value, _
    >> Subject:=Range("A8").Value & "-" & Range("D22").Value & Format(Date,

    > "yyyy-mm-dd")
    >> ActiveWindow.Close SaveChanges:=False
    >>
    >>
    >>
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >>
    >>
    >> "Looker" <[email protected]> wrote in message

    > news:[email protected]...
    >> >
    >> > I need to send mail to a user whose value is in row E41
    >> > but cannot get it to work
    >> > can this be done?
    >> >
    >> > ActiveWorkbook.SendMail Recipients:=Range("E41").Value,
    >> > Subject:=(Range("A8").Value) & "-" & (Range("D22").Value) & Format(Date,
    >> > "yyyy-mm-dd") ActiveWindow.Close SaveChanges:=False
    >> > --
    >> > NO SPAM
    >> > remove X from Xname@Xdomain
    >> >
    >> >

    >>
    >>

    >
    >
    >




+ 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