Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default 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
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
Data gathering and reporting Eán[_2_] Excel Worksheet Functions 1 February 18th 09 02:10 PM
Reporting from data into grouped ranges.. GD Excel Discussion (Misc queries) 1 September 16th 08 03:50 PM
reporting of data Tarun New Users to Excel 1 September 2nd 08 05:03 PM
Reporting data to UserForm todd Excel Programming 7 May 19th 06 07:59 PM
How to build build a macro that automatically imports PedroPeso Excel Programming 1 December 26th 03 08:14 PM


All times are GMT +1. The time now is 06:47 PM.

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"