+ Reply to Thread
Results 1 to 5 of 5

Need Help with Code to auto close and save emails to draft folder

  1. #1
    Registered User
    Join Date
    10-08-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Cool Need Help with Code to auto close and save emails to draft folder

    Hello!

    Wanted to see if someone can help add a code to the attached file that will auto close and save the emails to the Drafts folder in Outlook once they have been generated by clicking on the picture.

    Please let me know if this is possible to do.

    Thank you
    Last edited by katalyzt_94; 06-25-2022 at 05:57 PM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Need Help with Code to auto close and save emails to draft folder

    It should be as simple as Saving (goes to Drafts by default) and then Closing the window...

    Please Login or Register  to view this content.
    You do realise you could drastically reduce the amount of code by looping through the range instead of processing each individual cell...?

  3. #3
    Registered User
    Join Date
    10-08-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Need Help with Code to auto close and save emails to draft folder

    Thanks, this extra code appears to save each email but it doesn't automatically close them. Wondering if it can also close each email so that they don't stay open on the screen.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Need Help with Code to auto close and save emails to draft folder

    Been a while since I worked with Outlook - Totally forgot about the 'Inspector'
    Please Login or Register  to view this content.
    Plus, if each 'block' in your original code was identical except for the cell used to pick information then that above should loop from B3 to the last used cell in B, ignoring any intermediate blanks
    Last edited by cytop; 06-25-2022 at 05:36 PM.

  5. #5
    Registered User
    Join Date
    10-08-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    7

    Re: Need Help with Code to auto close and save emails to draft folder

    Excellent! This works exactly like I wanted and thanks for reducing the amount of code needed! You're awesome!

+ 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. Create MS Outlook Email from Excel and Save to Draft Folder
    By jski21 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2020, 05:55 AM
  2. [SOLVED] VBA code required to draft emails in outlook taking excel inputs.
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2015, 03:56 PM
  3. Macro to automatically draft email and save in a Folder
    By Mr.India in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-12-2015, 12:16 PM
  4. [SOLVED] What is wrong with this code? (Loop through WBs in folder - open, edit, save & close)
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-04-2013, 07:49 PM
  5. [SOLVED] A VBA Code to Draft / Prepare Multiple Emails in Google
    By spiwere in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2013, 09:38 AM
  6. Cursor when opening partly drafted emails in the Draft Folder
    By EsKay! in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 07-04-2010, 11:01 PM
  7. I like to open a folder,auto print,save then close
    By tied of opening files in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2005, 06: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