Results 1 to 3 of 3

Thread: Mail attachment through EXCEL

  1. #1

    Thread Starter
    Registered User
    Join Date
    May 2013
    Posts
    1

    Mail attachment through EXCEL

    Hi!


    I am kind of new to EXCEL VBA, and I am stuck in this problem. It goes like this.


    I have an excel sheet which contains some information along with email id s on which the information has to be sent, there could be same mail Id for multiple information, what I need to do is send this information on the particular mail ID as attachment via lotus notes.

    Here goes an example:




    Name:  1.jpg
Views: 159
Size:  18.9 KB


    What I want to do is to create a VBA which will create an collective excel sheet for all the information corresponding to one particular mail Id in this case, similar to the following



    Name:  2.jpg
Views: 143
Size:  6.7 KB

    and then send it to the mail id [email protected] via lotus notes.


    Please help me out for this one.


    Thanks in advance

    Ravi!

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Mail attachment through EXCEL

    i guess the best way is to sort the sheet on the mail id, loop through until the id changes
    or filter and send whole sheet
    i have no experience with lotus notes, but it would be simple enough to send with outlook or CDO, so i assume lotus would be no harder
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Mail attachment through EXCEL

    Welcome to the forums Ravi

    I agree with Pete on sorting. You can sort the data and copy the relevant section to a new sheet and then mail those selected cells using Lotus Notes.

    For sending email from lotus notes see my reply in this post.

    Topic: how do i send an email from excel containing only certain cells from the workbook?
    Link: http://social.msdn.microsoft.com/For...0-bfba3cf15323
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

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



Click Here to Expand Forum to Full Width