LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Returning the Last modified date of a sheet that is currently open

I am making a program that will open a quote and put it into a directory. If
information from the quote is allready in the directory, the program compares
the date that is given in the quote. In some cases the date is the same but
the modifyied date is the same. I am using the code shown below, however if
the sheet is open the last modifyied date becomes todays date. I changed the
program so that it closes the sheet without saveing and the problem is fixed.
Is it possible to keep the sheet open and return the last modifyied date?
If not, is there a way to reopen the last file that was closed with ease?

StrFileLocalDirectory = "C:\..."
strFileName = "Quote 1" ' Changes as the user selects different quotes
test1 = FileDateTime(StrFileLocalDirectory & strFileName)
test2 = FileDateTime(StrFileDatabaseDirectory & strFileName)
If test1 test2 Then ' If the modifyied date of the file in the database is
older than the one the user is trying to incert, replace the file in the
database.
 
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
Returning the last modified date to a cell in excel 2003 Dunc Excel Worksheet Functions 7 August 28th 09 08:48 PM
Print Modified date stamp on excel sheet Marc Excel Discussion (Misc queries) 2 September 8th 06 02:51 PM
Excel File Open Box - want Date Modified Titian Excel Discussion (Misc queries) 2 February 26th 06 08:25 AM
open last modified worksheet GEORGIA Excel Programming 4 June 29th 05 06:50 PM
Sheet Modified date in a cell.. ? n666 Excel Worksheet Functions 0 February 16th 05 01:32 AM


All times are GMT +1. The time now is 06:04 AM.

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"