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: 44
Default Extracting date file modified from a text file.

Hi
As part of an error checking control step I would like to add some VBA
to a Macro which requires extracting the date of modification of a
text file.

Specifically I want to read the date modified property of an
external .txt file before continuing to import the data from that
file into my current workbook.

If this date modified property does not equal Todays date (Today()) I
want a message box to appear saying the File will not be imported as
it was not modified Today. I then want the Macro to be terminated. If
it does equal todays date - no message box and continue with the rest
of the Macro code.

Would anyone be able to help me with the coding of this

Thanks
Eddie
 
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
Getting file name and Modified date MarkS Excel Programming 2 September 14th 07 10:08 PM
insert the date the file was last modified Ted M H Excel Discussion (Misc queries) 5 September 2nd 07 03:28 PM
Last modified date of a linked file tjc Excel Discussion (Misc queries) 8 August 31st 07 04:30 PM
date file modified Matthew Excel Discussion (Misc queries) 2 October 11th 06 06:52 PM
Get the date a file was modified JustinP Excel Programming 2 September 5th 06 04:54 AM


All times are GMT +1. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"