#1   Report Post  
Posted to microsoft.public.excel.misc
Kjell Forssen
 
Posts: n/a
Default Creation Date

Hi
Why doesn´t this code work?

ActiveWorkbook.SaveAs FName
Sheets("Offert").Select
Range("D13").Select
ActiveCell.Value = ActiveWorkbook.BuiltinDocumentProperties("Creation
Date")
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Creation Date

It does work, but you might want to format it

ActiveCell.Value = Format(ActiveWorkbook.BuiltinDocumentProperties( _
"Creation Date"), "dd mmm yyyy hh:mm:ss")


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Kjell Forssen" wrote in message
...
Hi
Why doesn´t this code work?

ActiveWorkbook.SaveAs FName
Sheets("Offert").Select
Range("D13").Select
ActiveCell.Value = ActiveWorkbook.BuiltinDocumentProperties("Creation
Date")



  #3   Report Post  
Posted to microsoft.public.excel.misc
macropod
 
Posts: n/a
Default Creation Date

Hi Kjell,

This should work:
With ActiveWorkbook
.SaveAs FName
.Sheets("Offert").Range("D13").Value = _
.BuiltinDocumentProperties("Creation Date")
End With

Cheers

--
macropod
[MVP - Microsoft Word]


"Kjell Forssen" wrote in message
...
Hi
Why doesn´t this code work?

ActiveWorkbook.SaveAs FName
Sheets("Offert").Select
Range("D13").Select
ActiveCell.Value = ActiveWorkbook.BuiltinDocumentProperties("Creation
Date")



  #4   Report Post  
Posted to microsoft.public.excel.misc
Kjell Forssen
 
Posts: n/a
Default Creation Date

Hi again
Thank you for helping me.
It works as before wich means that I am getting the wrong date - its not the
templates date and not the date when the user template with the macros was
created and not todays date. It seems to me like if the worksheet has a
permanent date (20060418) wich not is changed when a new worksheet is created.
Great to hear from you again!
Kjell





"Kjell Forssen" wrote:

Hi
Why doesn´t this code work?

ActiveWorkbook.SaveAs FName
Sheets("Offert").Select
Range("D13").Select
ActiveCell.Value = ActiveWorkbook.BuiltinDocumentProperties("Creation
Date")

  #5   Report Post  
Posted to microsoft.public.excel.misc
macropod
 
Posts: n/a
Default Creation Date

Hi Kjell,

If the user saved the file using Save As, that might change the Creation
Date.

Cheers

--
macropod
[MVP - Microsoft Word]


"Kjell Forssen" wrote in message
...
Hi again
Thank you for helping me.
It works as before wich means that I am getting the wrong date - its not

the
templates date and not the date when the user template with the macros was
created and not todays date. It seems to me like if the worksheet has a
permanent date (20060418) wich not is changed when a new worksheet is

created.
Great to hear from you again!
Kjell





"Kjell Forssen" wrote:

Hi
Why doesn´t this code work?

ActiveWorkbook.SaveAs FName
Sheets("Offert").Select
Range("D13").Select
ActiveCell.Value =

ActiveWorkbook.BuiltinDocumentProperties("Creation
Date")



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining Date X based on Other dates MIchel Khennafi Excel Worksheet Functions 1 May 3rd 06 04:45 PM
Getting an external file creation date as data combustiblemoo Excel Discussion (Misc queries) 0 April 25th 06 01:37 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Ouput File Creation Date Sloth Excel Discussion (Misc queries) 1 October 10th 05 06:05 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"