PC Review


Reply
Thread Tools Rate Thread

Date in the workbook name

 
 
A & S
Guest
Posts: n/a
 
      1st Aug 2009
Hi
I am trying to input the date into the title of the my workbook. I
know that you can not have a / in the title of a workbook but you can
have a - so I could put the date in as 8-2-2009 for instance. So I am
wondering is anyone knows how to get a date value from a cell that
would look like 8/2/2009 and then take that date and put it in as the
title of a workbook, but have it formatted such that it would look
like 8-2-2009.

Also is there a way to just add a day to a date, so that I could name
the next workbook 8-3-2009.

Thanks
 
Reply With Quote
 
 
 
 
A & S
Guest
Posts: n/a
 
      1st Aug 2009
On Aug 1, 6:00*pm, smartin <smartin...@gmail.com> wrote:
> A & S wrote:
> > Hi
> > I am trying to input the date into the title of the my workbook. I
> > know that you can not have a / in the title of a workbook but you can
> > have a - so I could put the date in as 8-2-2009 for instance. So I am
> > wondering is anyone knows how to get a date value from a cell that
> > would look like 8/2/2009 and then take that date and put it in as the
> > title of a workbook, but have it formatted such that it would look
> > like 8-2-2009.

>
> > Also is there a way to just add a day to a date, so that I could name
> > the next workbook 8-3-2009.

>
> > Thanks

>
> In general you can format the date in a cell like this
> * *Format(Range("A1"), "m-d-yyyy")
>
> or this
> * *Format(Range("A1") + 1, "m-d-yyyy")


Everytime that I try to use this expression it gives me the error
"Expected ="

Thanks
 
Reply With Quote
 
helene and gabor
Guest
Posts: n/a
 
      4th Aug 2009
Hello,

Assume in A1 you have 8/12/2009
Then:
Concatenate(month(a1),"-",day(a1),"-",year(a1))

Gabor
"A & S" <(E-Mail Removed)> wrote in message news:cc4001a5-f0c7-4df0-8e9a-(E-Mail Removed)...
> Hi
> I am trying to input the date into the title of the my workbook. I
> know that you can not have a / in the title of a workbook but you can
> have a - so I could put the date in as 8-2-2009 for instance. So I am
> wondering is anyone knows how to get a date value from a cell that
> would look like 8/2/2009 and then take that date and put it in as the
> title of a workbook, but have it formatted such that it would look
> like 8-2-2009.
>
> Also is there a way to just add a day to a date, so that I could name
> the next workbook 8-3-2009.
>
> Thanks
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RETRIEVE DATA FROM ANOTHER WORKBOOK BY CHECKING ON WORKBOOK DATE Joe Microsoft Excel Worksheet Functions 13 27th May 2008 01:52 AM
date form and workbook with autofill for date ll Microsoft Excel Programming 2 5th Sep 2007 08:42 PM
Workbook Date =?Utf-8?B?UkVN?= Microsoft Excel Setup 7 16th Nov 2006 03:02 PM
Default display of sample date in linked workbook with blank date in source cell Barbara Martens Microsoft Excel Worksheet Functions 2 15th Apr 2004 10:15 PM
Expiration date for Workbook =?Utf-8?B?TGF1cmllTS4=?= Microsoft Excel Worksheet Functions 2 6th Dec 2003 11:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:49 AM.