PC Review


Reply
Thread Tools Rate Thread

How to compare two spreadsheets

 
 
AJ
Guest
Posts: n/a
 
      22nd Sep 2010
Hi all,

I need a script (or any other idea) to compare two spreadsheets. I need to
read a cell from sheet A and serach for the same data in sheet B and if the
data is found it must be deleted from the sheet. Any ideas?
Thank you


 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      22nd Sep 2010
The Find method can be used. This is the example from the help file...
'--
'..."finds all cells in the range A1:A500 that contain the value 2 and makes those cells gray"

With Worksheets(1).Range("a1:a500")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Interior.Pattern = xlPatternGray50
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
--
Jim Cone
Portland, Oregon USA
http://tinyurl.com/XLCompanion

..
..
..

"AJ" <(E-Mail Removed)>
wrote in message
news:(E-Mail Removed)...
Hi all,

I need a script (or any other idea) to compare two spreadsheets. I need to
read a cell from sheet A and serach for the same data in sheet B and if the
data is found it must be deleted from the sheet. Any ideas?
Thank you


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compare 2 spreadsheets jono Microsoft Excel Worksheet Functions 0 5th May 2008 12:58 PM
Compare spreadsheets JS Microsoft Excel Discussion 5 4th Dec 2007 02:36 PM
Compare Two Spreadsheets =?Utf-8?B?VHk=?= Microsoft Excel Misc 1 15th Feb 2006 05:09 PM
VBA - Compare Two Spreadsheets ajocius Microsoft Excel Programming 4 15th Aug 2005 07:14 PM
Compare 2 spreadsheets tonior Microsoft Excel Worksheet Functions 2 16th Jul 2004 01:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:42 PM.