comparing

E

Evelin

I have a file on server tha i have to fill

As i dont know when the administrator change this file with new
release....and s.....i cant know it.....is it possibile to compare the
original file i downloaded to the last one on server to see if it has been
any update???
 
J

Jean-Guy Marcil

Evelin was telling us:
Evelin nous racontait que :
I have a file on server tha i have to fill

A Word document? A Word template? A Word add-in? Not Word related?
As i dont know when the administrator change this file with new
release....and s.....i cant know it.....is it possibile to compare the
original file i downloaded to the last one on server to see if it has
been any update???

You could compare their time stamp. If the file on the server is newer, it
has been updated.

Do you mean to ask how to compare programmatically/automatically?
How do you seee this work in relation to Microsoft Word?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
E

Evelin

A Word document? A Word template? A Word add-in? Not Word related?
WORD DOCUMENT
You could compare their time stamp. If the file on the server is newer, it
has been updated.
I cant see time stamp cause its on server, downloading by java applet on
homepage
Do you mean to ask how to compare programmatically/automatically?
Yes, exactly. I need a macro to check the characters between the
original download and the mondays download
 
J

Jean-Guy Marcil

Evelin was telling us:
Evelin nous racontait que :
WORD DOCUMENT

I cant see time stamp cause its on server, downloading by java
applet on homepage

Yes, exactly. I need a macro to check the characters between the
original download and the mondays download

If you want to use a Word macro, you could compare their last saved date,
something like:


Dim varDocOne As Variant
Dim varDocTwo As Variant

varDocOne = Documents("Recent.Doc") _
.BuiltInDocumentProperties(wdPropertyTimeLastSaved)
varDocTwo = Documents("Old.Doc") _
.BuiltInDocumentProperties(wdPropertyTimeLastSaved)

If Not varDocOne = varDocTwo Then
MsgBox "Documents are different."
Else
MsgBox "Documents are the same."
End If

or compare the number of words or characters:
..BuiltInDocumentProperties(wdPropertyWords)
..BuiltInDocumentProperties(wdPropertyCharacters)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top