+ Reply to Thread
Results 1 to 4 of 4

Integration of outlook with excel VBA

  1. #1
    Registered User
    Join Date
    12-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Integration of outlook with excel VBA

    Hello Experts,

    I'm in search of a VBA macro which will send a mail through outlook automatically with the count of files(.pdf + .msg files) in any given folder.

    Let me explain my requirement.

    I work for an organization, where we use Outlook for mailing purpose.

    Everyday Inventory(.pdf files and .msg files) will be saved in a folder that is to be processed.

    I want a macro which should automatically send the total inventory (.pdf files + .msg files) through my outlook mailbox(say: me@outlook.com) to a my superiors outlook mailbox(say: superior@outlook.com).

    If the macro sends that email to my superior before me and my superior logon to computers at perticular time (say: 7:00AM daily), it will be of great help to plan our day at work.

    Any help will be appreciated.

  2. #2
    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: Integration of outlook with excel VBA

    Hi Nanimadhu

    How will the Code know this...how or where is it defined?
    in any given folder
    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.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Integration of outlook with excel VBA

    Hello Nanimadhu,

    This macro should be a good starting point. It will let you browse for the Inventory folder. Once you have selected the folder, only the PDF and MSG files are copied to a Zip folder. The email subject message shows the count of each of the file types in the attached zipped folder. You will need to change the mail address to the one you want to use as "myboss@work.com" is not a real address. I have heavily commented code to make it easier to understand. Try this out and let me know if this is close to what you wanted.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    12-31-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Integration of outlook with excel VBA

    Thank you Leith Ross,

    I'm looking for same kind of macro, but I need some editions to this macro to achieve what I'm actually looking for.

    Apologies that I dint mentioned all these details in post.

    Here are the editions am looking for,

    1. Path from where it has to extract the count of .msg and .pdf files is "T:\inventory\(today's date)" : Macro should automatically take today's date(mm-dd-yyyy) as the target folder from which it has to extract the count of .msg and .pdf files.

    Eg: T:\inventory\2-8-2014

    2. Macro should automatically run and send mail when that today's date(mm-dd-yyyy) folder is created by other team for our processing.

    3. Macro should automatically run and send mail even when I don't log-in to computer. That means, email has to be sent even I'm absent to office.

    4. I would not need Zip file attached with email.

    5. If the body of email consists of Folder name (here, 2-8-2014), it will be helpful.

    Please let me know if you need any more clarifications and once again thanks for helping me out.
    Last edited by Nanimadhu; 02-09-2014 at 10:06 AM.

+ 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. Integration of outlook with excel VBA
    By Nanimadhu in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2014, 10:40 AM
  2. Integration of Excel and MS Outlook
    By AlexL2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2010, 05:20 AM
  3. IF function for scheduling tool with outlook integration
    By systematic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2005, 09:10 PM
  4. [SOLVED] Outlook Integration
    By Bdavis in forum Excel General
    Replies: 0
    Last Post: 04-14-2005, 12:06 PM

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