+ Reply to Thread
Results 1 to 2 of 2

Get Date from filename using excel vba

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    SUNNYVALE, CALIFORNIA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Get Date from filename using excel vba

    I have a file filename-one-somedate. I need to get date to my column A. Please help

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,799

    Re: Get Date from filename using excel vba

    Give us a true example of the file name, so that it can be parsed appropriately.
    This code will give you the full file name for the file that is open. But without a real life example, I don't know how to separate the date from the full name.

    Please Login or Register  to view this content.
    Alan
    Last edited by alansidman; 11-13-2013 at 05:45 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] VB Script for saving excel file appending weekend's date to the filename
    By alexgempesaw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2013, 03:59 AM
  2. [SOLVED] XLS to CSV with a Date on the filename - using VB
    By simonias in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2013, 09:58 PM
  3. [SOLVED] set filename to <filename-date> on open
    By bob engler in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2006, 12:15 AM
  4. [SOLVED] set excel <filename> to <filename-date>
    By bob engler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2006, 03:25 AM
  5. Using the date as the filename
    By tfeck in forum Excel General
    Replies: 0
    Last Post: 03-30-2005, 09:45 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