+ Reply to Thread
Results 1 to 1 of 1

Copying values to buffer and sending an email

  1. #1
    Registered User
    Join Date
    09-14-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    2

    Thumbs up Copying values to buffer and sending an email

    Hello Experts!
    I've been having a problem with creating mail sending macro from my report.

    I have come up with an idea to put header of the report in separate sheet “buffer” and then create a macro which will copy row’s range underneath it and then send it all in msg body. It seems that it will make it less fragile.

    I need to have AF column active in a main sheet. For example: When double-clicking on AF2 cell, Range("A2:AD2") should copy over to “buffer” sheet. It looks like:

    Please Login or Register  to view this content.
    This macro needs to be applied to each row.
    Double-click on AE2 cell copy Range("A2:AD2"), And paste it to the same place A3 in “buffer” sheet and send email.
    Double-click on AE3 cell copy Range("A3:AD3"), And paste it to the same place A3 in “buffer” sheet and send email.
    Double-click on AE4 cell copy Range("A4:AD4"), And paste it to the same place A3 in “buffer” sheet and send email.
    And so on…

    It seems to be easy but don’t know how to make it possible.

    Second part which is send email does not require code to be changed each time when double click is performed. That is why “buffer” has been created. This should make it easier.

    I have managed to define recipients and email details using following:

    Please Login or Register  to view this content.
    I’ve been told that this forum is the best place to ask for help.
    Experts, how to make first part applicable for each rows and how to merge those lines into smoothly working macro?
    It is a hard nut to crack for me. I am learning every day something new about Excel VBA but the clock is ticking and I am asking for your help.

    Thank you so much in advance!
    MrJimi
    Last edited by JBeaucaire; 09-16-2015 at 08:01 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. olMail - Email Attachment Variable. Sending Email through Excel
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2014, 07:55 AM
  2. olMail - Email Attachment Variable. Sending Email through Excel
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2014, 07:41 AM
  3. Sending Email from VBA - selecting correct email address issue
    By Rachieo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 03:51 PM
  4. [SOLVED] sending email with specific range as email body vba modification
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2014, 11:24 AM
  5. automation/macro for sending email to multiple email address
    By saurabhlotankar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2013, 12:13 PM
  6. Copying content of one excel to another excel and sending email with excel data
    By archies.gall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 02:22 PM
  7. Sending Email Dependent on Default Email Client
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2010, 06:51 AM

Tags for this Thread

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