+ Reply to Thread
Results 1 to 14 of 14

Initiate Meeting Request using excel macro in outlook

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Initiate Meeting Request using excel macro in outlook

    Hi Team,

    Need your expert help in creating a macro to send meeting request through outlook from excel. I don't know if this can be easily achieved through macro but below are the requirements:

    1. Use excel fields to send meeting request in outlook .
    2. In the body it should Change the names <<Ray>> and <<team1>> dynamically to its respective <<Name>> and <<Team Names>> fields.
    3. Attachments can be multiple; however if no attachments are found in the location(c:/temp) or if attachment field in excel sheet is blank it should still continue to send the meeting requests.
    4. The macro should be initiated from excel when we press ctrl+q key and should be appear as shown in the Result screenshot attached.

    Thanks!

    4gurus
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Initiate Meeting Request using excel macro in outlook

    Hi,

    I think this is what you need. Sorry I owe you the bold text in the body .

    Run the macro called :GenerateMeetingRequests

    Main Code:
    Please Login or Register  to view this content.
    Sub to generate the meeting:
    Please Login or Register  to view this content.
    Other function and helper subs:
    Please Login or Register  to view this content.
    I hope this helps


    excel-outlook macro.xlsm

    Thanks

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Re: Initiate Meeting Request using excel macro in outlook

    Hi Alfredo,

    Fristly, thank you so much for writing the code. I downloaded the file you had attached (excel-outlook macro.xlsm) and ran the code Generatemeetingrequests while outlook 2007 was open but nothing happened.

    Then I made sure I added those email address in address book and ran the macro again but nothing happens.

    Let me know if I am doing anything wrong.

    One more requirement, I don't know if you would be able to incorporate; that is if the email addresses listed in excel file are not present in outlook address book or global address book( it is an organization's exchange server) it should still continue to send meeting request based on what is present in the excel file.

    It was great to see how you were able to send the meeting request by running the code. I don't know what I am missing here.

    Thanks!

    4Gurus

  4. #4
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Re: Initiate Meeting Request using excel macro in outlook

    Hi Alfredo,

    Fristly, thank you so much for writing the code. I downloaded the file you had attached (excel-outlook macro.xlsm) and ran the code Generatemeetingrequests while outlook 2007 was open but nothing happened.

    Then I made sure I added those email address in address book and ran the macro again but nothing happens.

    Let me know if I am doing anything wrong.

    One more requirement, I don't know if you would be able to incorporate; that is if the email addresses listed in excel file are not present in outlook address book or global address book( it is an organization's exchange server) it should still continue to send meeting request based on what is present in the excel file.

    It was great to see how you were able to send the meeting request by running the code. I don't know what I am missing here.

    Thanks!

    4Gurus

  5. #5
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Initiate Meeting Request using excel macro in outlook

    Replace this code for CreateMeetingRequest apparently the meeting has to be displayed for the recipients to show. I have also added code to highlight red the items that failed.

    Thanks


    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Re: Initiate Meeting Request using excel macro in outlook

    Hi Alfredo,

    This time when I ran the macro the meeting request did come up however quite a few things were missing and I have attached the screen shot and the file I used. Please have a look at it.

    Things that were missing this time are:
    Location, Subject, attachments(file1 and file2), and body of the message where as Start time and End time were different than what we have in the excel sheet



    Thanks!

    4Gurus
    Attached Images Attached Images
    Attached Files Attached Files

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Initiate Meeting Request using excel macro in outlook

    Hi 4gurus

    Try this...no files are attached to the Email as I don't have them to attach...
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  8. #8
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Re: Initiate Meeting Request using excel macro in outlook

    Hi Jaslake,

    As usual you are simply brilliant. Yes it works.

    However there is one concern with the macro, for example:

    Let's say some rows have attachments and others don't in such a case the macro does not pick attachments for which attachment location is mentioned.

    You can simple create text file like file1.txt and file2.txt in c:\temp to observe what happens.

    Please have a look at the attached documents.

    Thank you!

    4gurus
    Attached Files Attached Files
    Last edited by 4gurus; 02-02-2015 at 12:39 PM. Reason: Macro has a issue.

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Initiate Meeting Request using excel macro in outlook

    Hi 4gurus

    It does so because the Code tells it to do so.

    You'll need to change this line of Code in Sub CreateMeetingRequest(ByRef outApp As Object, ByVal lRowNumber As Long)
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Re: Initiate Meeting Request using excel macro in outlook

    Hi Jaslake,

    Thank you so much for being the macro savior; your recommendation worked.

    Thanks!

    4gurus

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Initiate Meeting Request using excel macro in outlook

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  12. #12
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Initiate Meeting Request using excel macro in outlook

    Ah no credit for me

    Kidding I am happy this is solved

  13. #13
    Registered User
    Join Date
    02-11-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007 or Excel 2010.
    Posts
    65

    Re: Initiate Meeting Request using excel macro in outlook

    Hi Fredlo,

    My bad; you definitely deserve the credit here. All of this would not have happened if you had not started it.

    Once again kudos to both of you.

    Thanks!

    4gurus

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Initiate Meeting Request using excel macro in outlook

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Make a meeting request in outlook via Excel
    By schmidtpainting in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-26-2013, 12:26 PM
  2. Excel 2010 to OutLook 2010 Meeting Request Problems
    By tigerdel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2012, 03:58 AM
  3. [SOLVED] Copy a formatted table from excel sheet to outlook meeting request.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-05-2010, 08:25 AM
  4. [SOLVED] How can I programme excel to create and send an outlook meeting request?
    By Keith Mason via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2005, 10:06 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