+ Reply to Thread
Results 1 to 9 of 9

VBA: Merge two macros

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question VBA: Merge two macros

    hey there,

    i want to combine the following two macros. the goal must be to create one macro that generates one email containing the screenshot and the second range. My system is windows xp and office 2003.

    Please Login or Register  to view this content.
    both work perfect alone. but i need them in one macro. maybe someone can help me

    thanks boulala
    Last edited by boulala; 08-18-2014 at 06:39 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: VBA: Merge two macros

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    06-13-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA: Merge two macros

    hi,

    thanks for the fast answer. But your code still calls both macros, that means that 2 emails are generated and I only want to have ONE email there must be a way to merge them, so that only one mail is created.

    info: every single macro is made that way, that it creates one seperate mail.

  4. #4
    Registered User
    Join Date
    06-13-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA: Merge two macros

    hi,

    sorry i've edited it

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: VBA: Merge two macros

    you have 2 different subj, 2 different Empfänger and you want sen only one email ?

  6. #6
    Registered User
    Join Date
    06-13-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA: Merge two macros

    Sorry I think I wasn't clear enough. I've tried this two different macros, just to test them if they work seperately.
    Now I want to merge them, to generate just one Email with only one Subject and one adress (Empfänger).

    That means I need one macro that, pastes a Screenshot and a table in one email body. And it MUST be a Screenshot and a copy of the table and NOT a Screenshot of of the whole excel sheet.

    I hope this was a bit clearer. If not feel free to ask me.
    Last edited by boulala; 08-18-2014 at 10:09 AM.

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: VBA: Merge two macros

    I don't use Outlook, then I can not test, but try
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    11-25-2013
    Location
    Ph
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: VBA: Merge two macros

    Try this

    Please Login or Register  to view this content.
    Last edited by aikz007; 08-18-2014 at 12:11 PM.

  9. #9
    Registered User
    Join Date
    06-13-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA: Merge two macros

    Hi,

    patel45 i used your Code. It works partially, that means the Screenshot isn't pasted into the mail.
    But have a look I attached the file (someone who has outlook).

    @aikz007: your code calls 2 macros that generate 2 emails. but I only need one email including the screenshot and the table.

    example.xls
    Last edited by boulala; 08-18-2014 at 01:18 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. Merge three autofilter-macros to one
    By vonrainer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2014, 08:20 AM
  2. [SOLVED] Merge rows using macros
    By ravitejaintel in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2014, 01:16 PM
  3. How can I merge these two macros?
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2013, 08:54 AM
  4. [SOLVED] Merge Macros into one
    By smugglersblues in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2013, 09:40 AM
  5. VBA how to merge two macros
    By Mula in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2009, 06:17 AM

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