WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Displaying File Timestamp of Another Excel File

 
   Home -> Office -> Links RSS
Next:  Linking to word document  
Author Message
rockfalls3

External


Since: Jul 22, 2008
Posts: 10



(Msg. 1) Posted: Tue Jul 22, 2008 2:51 pm
Post subject: Displaying File Timestamp of Another Excel File
Archived from groups: microsoft>public>excel>links (more info?)

I have a link from an external Excel file displaying data within my
(current) Excel file.

To make sure I am pulling the latest version of the data and
displaying the timestamp of that
latest data, is there a way to display the timestamp of that external
file within my (current)
spreadsheet?


Many thanks....

(previously posted to microsoft.public.excel.charting)
Back to top
Login to vote
Bill Manville

External


Since: Jul 30, 2004
Posts: 810



(Msg. 2) Posted: Tue Jul 22, 2008 11:17 pm
Post subject: Re: Displaying File Timestamp of Another Excel File [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Put this in a standard module in your workbook:

Function FileDate(FileName As String) As Date
Application.Volatile
FileDate = FileDateTime(FileName)
End Function

Put this in a cell in a worksheet in your workbook
=FileDate("C:\Temp\MyFile.xls") [amend as appropriate]


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
Back to top
Login to vote
rockfalls3

External


Since: Jul 22, 2008
Posts: 10



(Msg. 3) Posted: Wed Jul 23, 2008 9:09 am
Post subject: Re: Displaying File Timestamp of Another Excel File [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jul 22, 7:17 pm, Bill Manville <Bill-Manvi... RemoveThis @msn.com> wrote:
> Put this in a standard module in your workbook:
>
> Function FileDate(FileName As String) As Date
>   Application.Volatile
>   FileDate = FileDateTime(FileName)
> End Function
>
> Put this in a cell in a worksheet in your workbook
> =FileDate("C:\Temp\MyFile.xls")  [amend as appropriate]

Thanks, Bill, but for some reason I get a "#NAME?" error after pasting
the function
in the VB editor for that sheet, and putting the "=FileDate()" in a
cell in my workbook.
Suggestions? I am in an office with MS Office permissions tightly
controlled, so I cannot
download add-ins or install new software without Helpdesk
intervention.
Back to top
Login to vote
Dave Peterson

External


Since: Jul 08, 2005
Posts: 23462



(Msg. 4) Posted: Wed Jul 23, 2008 12:06 pm
Post subject: Re: Displaying File Timestamp of Another Excel File [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Did you put the function in a General module?
Did you allow macros to run when you opened the workbook?

And you did really put the full path to the other file in your formula, right?

=FileDate("C:\Temp\MyFile.xls")

rockfalls3 DeleteThis @yahoo.com wrote:
>
> On Jul 22, 7:17 pm, Bill Manville <Bill-Manvi... DeleteThis @msn.com> wrote:
> > Put this in a standard module in your workbook:
> >
> > Function FileDate(FileName As String) As Date
> > Application.Volatile
> > FileDate = FileDateTime(FileName)
> > End Function
> >
> > Put this in a cell in a worksheet in your workbook
> > =FileDate("C:\Temp\MyFile.xls") [amend as appropriate]
>
> Thanks, Bill, but for some reason I get a "#NAME?" error after pasting
> the function
> in the VB editor for that sheet, and putting the "=FileDate()" in a
> cell in my workbook.
> Suggestions? I am in an office with MS Office permissions tightly
> controlled, so I cannot
> download add-ins or install new software without Helpdesk
> intervention.

--

Dave Peterson
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Links All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET