Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Can any one offer some code to insert the modified date of an external xls file into a cell comment. Thanks Simon |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should get you started.
Sub test() Dim myString As String myString = "" On Error Resume Next myString = ThisWorkbook.BuiltinDocumentProperties("Last Save Time") On Error GoTo 0 If Not myString = "" Then ActiveCell.AddComment ActiveCell.Comment.Text Text:=myString End If End Sub -- HTH, Barb Reinhardt "Simon" wrote: Hi Can any one offer some code to insert the modified date of an external xls file into a cell comment. Thanks Simon |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Barb
But does this looks like it places the date for the current workbook date. I am looking to place the date of a completely seperate workbook. Unless I misread this. Thnaks Simon "Barb Reinhardt" wrote: This should get you started. Sub test() Dim myString As String myString = "" On Error Resume Next myString = ThisWorkbook.BuiltinDocumentProperties("Last Save Time") On Error GoTo 0 If Not myString = "" Then ActiveCell.AddComment ActiveCell.Comment.Text Text:=myString End If End Sub -- HTH, Barb Reinhardt "Simon" wrote: Hi Can any one offer some code to insert the modified date of an external xls file into a cell comment. Thanks Simon |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Give something like this a try...
Dim LastModDateTime As Date, FilePathName As String ....... ....... FilePathName = "C:\Users\Rick\Documents\Book1.xls" LastModDateTime = FileDateTime(FilePathName) -- Rick (MVP - Excel) "Simon" wrote in message ... Hi Can any one offer some code to insert the modified date of an external xls file into a cell comment. Thanks Simon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert comment to Cell | Excel Discussion (Misc queries) | |||
Insert a File, not a Comment, to a Cell | Excel Programming | |||
Macro to Insert Comment to a cell | Excel Programming | |||
How do I insert a comment when the Insert:Comment menu is greyed? | Excel Discussion (Misc queries) | |||
How do I report the filedate in an Excel2000 cell? | Excel Worksheet Functions |