ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   FileDateTime(path) - doesn't work across network??? (https://www.excelbanter.com/excel-programming/452528-re-filedatetime-path-doesnt-work-across-network.html)

[email protected]

FileDateTime(path) - doesn't work across network???
 
I can't remember where I found this, so I am not able to give proper credit. My apologies. Anyway, this is the code that I am using and it works for me with spreadsheets in SharePoint in the cloud.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Metrics").Range("O1").Value = Now
End Sub

In the cell where I want the date and time to show, I put =Now()

You may need to put the name of your spreadsheet where "Metrics" is. I must confess that I do not know why or how it works for me, only that it does.

cachmangmuasam

Bui cả chồng :v. về ăn Gọi trưa xong đấy. kêu Gam Bùi Nguyen chỗ gọi Thu Đang Gấu Tâm chị vợ M*p Jessica đ*p phá đi em nay Nguyen gặp Huyen Mới
Bao Hiem Nhan Tho Daiichi


All times are GMT +1. The time now is 10:17 PM.

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