+ Reply to Thread
Results 1 to 6 of 6

Mail from Excel using VBA

  1. #1
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Mail from Excel using VBA

    HI,

    Recently, I was trying to work on the automated Excel worbook, containing some data, and this data must be sent routinely daily to some users.

    I was trying to use macro which will copy the defined range in the sheet and sends to the defined recipients with the defined name and so on in the code.

    The code already exsist:

    Please Login or Register  to view this content.
    But the problem is that it sends the whole workbook including only defined range in the sheet.

    My request will be if anyone could modify this code in such way that, no attachments will be send to the user, but just the copy-pasted data in to the mail body text area from the defined range of the sheet. the code works fine, but needs this type of modification that I have just described.

    Thanks in advance.

  2. #2
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Mail from Excel using VBA

    if you just want the selected field then try this..

    Please Login or Register  to view this content.
    End Sub
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  3. #3
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Mail from Excel using VBA

    thnaks for the code I will test it now and reply if any issue will be raised, but I have a little question is there a command in VBA to include in the Subject filed of the mail the current date every time I send the mail

  4. #4
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Mail from Excel using VBA

    Also it worns me when I try to use macro: Excpected ENd SUB.

    The highlighted command is: Sub Mail_Range()

  5. #5
    Forum Contributor G.Bregvadze's Avatar
    Join Date
    12-06-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    256

    Re: Mail from Excel using VBA

    I have corrected the error, I forgot to write END SUB..

    So this code sends the email directly from the Excel Worksheet. thanks a lot my dear friend, You helped me a lot.

  6. #6
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Mail from Excel using VBA

    glad it helped...

+ 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