+ Reply to Thread
Results 1 to 2 of 2

Create a workbook with date as the name

  1. #1
    Registered User
    Join Date
    04-22-2010
    Location
    Luton, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Create a workbook with date as the name

    Hi All,

    I'm working on VBA code to create a new workbook with a name based on a date from the cell ("b3" for argument sake). Here is the challange. Date is stored with "/" separators and windows is not accepting "/" as the file name :/. Im quite happy with having "." as a separator in the file name or no separator at all (i.e 04022011). Is there any way of converting the date to a text format or anything just for sake of creating a file name?

    Here is the code im using to get the filepatch and workbook name

    Please Login or Register  to view this content.
    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Create a workbook with date as the name

    Please Login or Register  to view this content.
    Last edited by nimrod; 02-03-2011 at 06:35 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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