Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Test Date of External Data Source

Yeah - I was able to make good use of it already...

What I was not able to do was combine it into a formula in a maco, like:

ActiveCell.FormulaR1C1 = "=IF(f.datelastmodified(TODAY()+0.99999),""Fu ture
Data?"",(IF(f.datelastmodified<TODAY(),""Old Data"",""Validated"")))"

How would I go about doing that?

"Joel" wrote:

The code actually produces a serial number date in the cell.

Sub test1()
Dim fs, f, f1, fc, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile("c:\temp\abc.txt")
MsgBox (f.datelastmodified)
Range("A1") = f.datelastmodified
End Sub"RayportingMonkey" wrote:

This works - But - Since I want to run logic in the worksheet based on this
data, how do I redirect the response to a cell instead of a Message Box?

"Joel" wrote:

Sub test1()
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile("c:\temp\abc.txt")
MsgBox (f.datelastmodified)
End Sub

"RayportingMonkey" wrote:

I have created a number of automated reports in Excel and now need to pass
the actual report generation on to a team of Analysts.

There is a mix of automated and manual extracts that comprise the source for
these reports.

Is there a way I can test to see if the "Date Modified" for the source
file(s) is = to TODAY?

Thank you for your assistance!

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
Test Date of External Data Source Joel Excel Programming 0 August 17th 07 01:44 AM
DATE FORMAT IN PIVOT TABLE FROM EXTERNAL DATA SOURCE uncreative Excel Discussion (Misc queries) 2 February 23rd 07 04:51 PM
Date Modified from an External Internet Source rjamison Excel Programming 0 June 14th 05 12:14 AM
Date Modified from an External Internet Source UBER_GEEK Excel Programming 2 April 20th 05 04:54 PM
External Data Source S Walker Excel Programming 0 February 16th 05 04:15 PM


All times are GMT +1. The time now is 12:15 PM.

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"