Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Compare ENTRIE row in OLD_Sheet.xls and Update the Comments Column Value in NEW.xls

Hi All, [I have attached same files]
I want to write a macro to Compare ENTRIE row in NEW_SHEET.xls.If any records present in OLD_Sheet.xls.Our macro should update Only Comments column [P:P] value in NEW_SHEET.xls status field.
================================================== ===============
IF (Any OLD_SHEET Record present in NEW_SHEET) then
{
Update NEW_SHEET.COMMENTS= OLD_SHEET.COMMENTS

}
Else
{
Print "NEW RECORD" in NEW_SHEET.COMMENTS
}
================================================== ===============
Thanks
Sugadev V.
  #2   Report Post  
Junior Member
 
Posts: 19
Default

Quote:
Originally Posted by vsugadev View Post
Hi All, [I have attached same files]
I want to write a macro to Compare ENTRIE row in NEW_SHEET.xls.If any records present in OLD_Sheet.xls.Our macro should update Only Comments column [P:P] value in NEW_SHEET.xls status field.
================================================== ===============
IF (Any OLD_SHEET Record present in NEW_SHEET) then
{
Update NEW_SHEET.COMMENTS= OLD_SHEET.COMMENTS

}
Else
{
Print "NEW RECORD" in NEW_SHEET.COMMENTS
}
================================================== ===============
Thanks
Sugadev V.
Hi,

This can be achieved with nested loop in VBA.

For each Row

For each Cell

(Do Compare and Report Thing)

Next Cell

Next Row


Obviously you will need some unique identifier such as an account No. to match.

Educo
Reply
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
Returning multiple text data into 1 column from many column entrie Roger Excel Worksheet Functions 1 March 4th 10 08:07 AM
Macro to update a column in a work based on another work sheet WickerMan New Users to Excel 1 December 4th 09 12:58 PM
How to Autonumber Rows but Retain Same Number for Duplicate Entrie Caledoniain Excel Discussion (Misc queries) 5 January 23rd 09 12:36 PM
Compare and update spreadsheets Boinks Excel Discussion (Misc queries) 1 July 26th 08 12:58 PM
Compare and Update elements from Sheet1 with Sheet2 [email protected] New Users to Excel 3 November 27th 07 04:27 PM


All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"