Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 Database tables comparission in Excel
#2
Not Solved
Hi,
Try with the below code u would get expected result....
----------------------
Code:
Set objExcel = CreateObject(”Excel.Application”)
objExcel.Visible = True
Set Wk1= objExcel.Workbooks.Open("File path1")
Set Wk2= objExcel.Workbooks.Open("Filepath2")
Set Ws1= Wk1.Worksheets(1)
Set Ws2= Wk2.Worksheets(1)
   For Each cell In Ws1.UsedRange
       If cell.Value <> Ws2.Range(cell.Address).Value Then
           cell.Interior.ColorIndex = 3′Highlights in red color if any changes in cells
       Else
           cell.Interior.ColorIndex = 0
       End If
   Next
set objExcel=nothing
------------------------
Reply


Messages In This Thread
RE: 2 Database tables comparission in Excel - by venkatbatchu - 08-13-2009, 10:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  XML input data validation with data in oracle tables using webservice smtripathi99 0 2,246 12-11-2012, 01:32 PM
Last Post: smtripathi99
  How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? bell.ramesh 1 4,047 08-20-2012, 11:07 AM
Last Post: Victor~
  it is possible import from excel to table with expected data of checkpoint database i sarcastic 0 2,208 08-05-2011, 04:42 PM
Last Post: sarcastic
  validation tables and column in a oracle database ajayr1982 0 2,565 04-20-2011, 10:04 AM
Last Post: ajayr1982
  Data tables kumarts 1 2,317 11-25-2010, 01:20 PM
Last Post: KavitaPriyaCR

Forum Jump:


Users browsing this thread: 1 Guest(s)