ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Date in Page... (https://www.excelbanter.com/excel-worksheet-functions/7624-date-page.html)

The Boondock Saint

Date in Page...
 
Hi guys,
Im just wondering how I can have the the time and date in a sheet....
basically im saving the sheet as a webpage.. and just want to have the time
and date it was saved included....

Hope someone can help out..

Cheers....



Frank Kabel

Hi
use the following UDF (only on workbook level):


Function DocProps(prop As String)
application.volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties _
(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function


and enter in a cell
=DOCPROPS("last save time")
(format cell as date)


"The Boondock Saint" wrote:

Hi guys,
Im just wondering how I can have the the time and date in a sheet....
basically im saving the sheet as a webpage.. and just want to have the time
and date it was saved included....

Hope someone can help out..

Cheers....




The Boondock Saint

:) well with abit of playing around.. ive found the NOW function....

This shows the current date and time and is perfect.... im wondering is
there anyway to include this into another function.. such as the CONCATENATE
function

Cheers

"The Boondock Saint" wrote in message
...
Hi guys,
Im just wondering how I can have the the time and date in a sheet....
basically im saving the sheet as a webpage.. and just want to have the

time
and date it was saved included....

Hope someone can help out..

Cheers....





Frank Kabel

Hi
try to explain what you're trying to achieve with this. Of course you could
include NOW() or TODAY() in another function. e.g.
="The vcurrent date is: " & TEXT(TODAY(),"MM/DD/YYYY")

"The Boondock Saint" wrote:

:) well with abit of playing around.. ive found the NOW function....

This shows the current date and time and is perfect.... im wondering is
there anyway to include this into another function.. such as the CONCATENATE
function

Cheers

"The Boondock Saint" wrote in message
...
Hi guys,
Im just wondering how I can have the the time and date in a sheet....
basically im saving the sheet as a webpage.. and just want to have the

time
and date it was saved included....

Hope someone can help out..

Cheers....







All times are GMT +1. The time now is 09:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com