+ Reply to Thread
Results 1 to 3 of 3

Date on file name when email downloaed

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Date on file name when email downloaed

    Hello:

    I am using below vb code to download email.
    I would like to change the Item.ReceivedTime to previous day and change the below code accordingly so that it gives previous day.
    Example:
    If I download file today, below code will say : 070714 Store1.xls

    I need the above name to be 070614 Store1.xls


    Please Login or Register  to view this content.
    Let me Know if you have any questions.
    Thanks.

    Riz

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,178

    Re: Date on file name when email downloaed

    vDate = dateadd("d",-1,Item.ReceivedTime)

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Date on file name when email downloaed

    Hello:

    Got it, Thank you so much

    Riz

+ 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. [SOLVED] export email body to excel workbook with year/month date in file extension
    By john.tm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2014, 09:24 AM
  2. Replies: 5
    Last Post: 09-28-2013, 04:32 AM
  3. Replies: 0
    Last Post: 02-21-2013, 04:46 AM
  4. Need VB Code to Extract email address from File name and email the file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-30-2012, 11:18 AM
  5. email excel file or worksheet as an attachment to multiple email addresses
    By jgeagle5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2009, 03:40 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