Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Reporting add-in build data
I would like a Help|About command on the menu created when my add-in
is loaded. In it I'd like to report a Version number and the timestamp for when I last modified the add-in. Here's what I have written: Set wkbWkb = ThisWorkbook strFileName = wkbWkb.Name Set wksWks = wkbWkb.Worksheets("UserData") strPath = wkbWkb.Path & "\" & strFileName varDate = FileDateTime(strPath) iCol = GetColIndex2(wksWks, "VERSION") strVersion = wksWks.Cells(2, iCol) strMsg = "JOC Membership Macro Package Version " & strVersion & " Last modified " & varDate MsgBox strMsg As you can see, I get teh Version number out of cell stored in a worksheet belonging to the add-in workbook. That works fine. What doesn't work is the way I attempt to get the "build date." I would think that varDate would be reported as the timestamp I see in Windows Explorer, i.e., the date I last modified the .xla file. Instead, I get a time stamp that seems to be the time the add-in is loaded. Why does it behave this way? How can I get it to report the actual last-modified date/time? TIA Ed |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Data gathering and reporting | Excel Worksheet Functions | |||
Reporting from data into grouped ranges.. | Excel Discussion (Misc queries) | |||
reporting of data | New Users to Excel | |||
Reporting data to UserForm | Excel Programming | |||
How to build build a macro that automatically imports | Excel Programming |