+ Reply to Thread
Results 1 to 3 of 3

Change spreadsheet name based on timestamp in spreadsheet cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    29

    Change spreadsheet name based on timestamp in spreadsheet cell

    I have about a 1000 files in the following format:
    • YYYYMMDD_HHMM - Hourly.csv
    • YYYYMMDD_HHMM - 5min.csv


    For example:
    • 20150701_1259 - Hourly.csv
    • 20150701_1300 - 5Min.csv

    etc...

    Except the timestamp is different for each file. Inside each CSV are various figures but the most important is the timestamp in cell A3 in the form:

    DD/MM/YYYY HH:MM:SS

    What I need to do is grab the timestamp INSIDE the sheet (always cell A3) and change the file name of that spreadsheet to this timestamp.

    I am quite familiar with excel/macros/VBA. However, I am not sure how to go about this outside of excel. I know it has to do with command prompt and most likely creating a Visual Basic code.

    If anyone can provide any info on how to start that would be great. I have Visual Studio Express installed but am not very familiar with it but more than willing to learn!

    Any help is much appreciated.

    I can provide a sample csv file for both 5Min and Hourly.

    Cheers

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Change spreadsheet name based on timestamp in spreadsheet cell

    I am quite familiar with excel/macros/VBA.
    This is enough to do most of the things...
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Registered User
    Join Date
    11-04-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    29

    Re: Change spreadsheet name based on timestamp in spreadsheet cell

    Quote Originally Posted by LokeshKumar View Post
    This is enough to do most of the things...
    Haha...well i guess I'm not THAT familiar then...

+ 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. Replies: 15
    Last Post: 10-27-2014, 08:45 PM
  2. Creating a master spreadsheet based on various spreadsheet in Sharepoint
    By lmoura in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2013, 05:09 PM
  3. Replies: 2
    Last Post: 06-13-2013, 05:47 PM
  4. Match data in one spreadsheet based on 2 conditions in another spreadsheet
    By dfarrel7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2012, 06:12 AM
  5. Find Data on One Spreadsheet Based on Name & Place into Another Spreadsheet
    By SEOT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2008, 11:26 PM
  6. Adding a date timestamp to the last column of a spreadsheet
    By sjharri@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2006, 11:54 AM
  7. insert date timestamp to end of spreadsheet
    By sjharri@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2006, 12:25 PM

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