LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Comparing Updated files

Absolutely !! The structure must be the same ! If rows/columns are
added/deleted there will be a huge pile of mis-matches
--
Gary''s Student - gsnu200733


"Toppers" wrote:

Does this not assume (which may correct!) that the files sizes (row and/or
columns) are the same?

"Gary''s Student" wrote:

Assume we have two files, new.xls and old.xls.
Each has a sheet named s1. Open both files and run:

Sub checkdif()
Set wbo = Workbooks("old.xls")
Set wbn = Workbooks("new.xls")
Set so = wbo.Sheets("s1")
Set sn = wbn.Sheets("s1")
For Each r In sn.UsedRange
vn = r.Value
vo = so.Range(r.Address).Value
If vo < vn Then
r.Interior.ColorIndex = 6
End If
Next
End Sub

The macro will hi-light in yellow all the cells in new.xls that are
different than old.xls
--
Gary''s Student - gsnu200733


"Bob" wrote:

Each day I receive an updated Excel file. The file is large and only minor
differences occur each day. How can I see the differences quickly or
automatically?



 
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
How do I set excel files to be accessible by everyone and updated Askara_thea Excel Discussion (Misc queries) 2 May 3rd 07 03:10 PM
Excel 2007: save updated files to F:\ still learning Excel Discussion (Misc queries) 1 April 8th 07 08:37 AM
Updating or merging files, same file, they were updated independan Vanessa Excel Discussion (Misc queries) 1 September 1st 06 03:16 AM
Comparing value in two different files Larry Excel Discussion (Misc queries) 3 June 23rd 05 04:27 AM
Excel updated with links in between destination files! Pascal Links and Linking in Excel 1 February 23rd 05 11:44 PM


All times are GMT +1. The time now is 04:24 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"