+ Reply to Thread
Results 1 to 12 of 12

Macro for comparison between two workbook specific sheet

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Macro for comparison between two workbook specific sheet

    Dear Sir,

    I have two workbooks (Ram & Shyam).I want to compare each & every cells these two workbooks of specific sheet only i.e say 'Data' sheet.If found any differences between these two, then differences of result of these two must be displayed in anyone sheet.

    Is this possible by vba/macro or not ? If so, kindly help me in this regard.

    With Best Rgds,

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro for comparison between two workbook specific sheet

    Does this help?

    Please Login or Register  to view this content.
    It highlights the data cells in Workbooks Ryam Sheets Data that does not match there counterparts in Workbook Shyam.

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    I have a case of large data, and it will be difficult to find each and every highlighted cells.Is it possible to get summary report of differences/unmatched data.

    I would be very much thankful in this regard

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro for comparison between two workbook specific sheet

    Try:

    Please Login or Register  to view this content.
    Created a Sheet Summary in Workbooks Ram.

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    I am getting a run-time error 9,Subscript out of range in your suggested code.Kindly debug the error.

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    I have attached files for your kind reference.I have made changes by highlighting in yellow in "Ram.xlsx".Kindly debug and resend back.I don't know why there is an error.

    I will be eagerly waiting for your reply.

    With Best Rgds,
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    I have found in the below link >>>

    http://superuser.com/questions/42627...-track-changes

    somewhere there is a line "This code also creates a hidden Change Log sheet and records the address and original font color of the cell that has been changed."

    Perhaps this might help with log file.But don't know how to modify the code for entire data of a single sheet.

    Hope anyone can help me.

    With Best Rgds

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro for comparison between two workbook specific sheet

    Quote Originally Posted by paradise2sr View Post
    I am getting a run-time error 9,Subscript out of range in your suggested code.Kindly debug the error.
    You're receiving an error because in the code you need too change .xls to .xlsx

  9. #9
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    Dear Sir,

    That things already I have done but there was error which I don't know.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro for comparison between two workbook specific sheet

    Looks that you need a Time Out of the forum as we warned you many times to read carefully the forum rules.

    You preferd to ignore us and continue to don't comply with them.

    You let me no choice...

    John sorry for your effords.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  11. #11
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    Dear All forum contributors,

    I am extremely sorry that I have hurt to anyone nor my intention is to do.This might has been done unknowingly or in innocence.Since the above code if I cannot be able to executed properly and gets an error than what should I do ? The only option is to get help from the above contributors that supplied the code.I know the expected solution of vba code is simply to be pasted in module/sheet/workbook.This things I know.But what in case if I am incurring error ?

    I have learnt a lot from this forum and would not like to be get banned/restricted from posting.Whenever I feel any real life problems in course of my work,I expect that I could get solved from this forum.

    Hope,I will not get banned further and will not get infractions too.

    With Rgds,
    Last edited by paradise2sr; 04-21-2014 at 01:34 AM.

  12. #12
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Macro for comparison between two workbook specific sheet

    I am now closing this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro to copy data from one workbook to another on specific sheet
    By Chetan Chauhan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-08-2014, 02:01 PM
  2. Replies: 3
    Last Post: 02-21-2014, 09:05 AM
  3. Macro to copy row to specific sheet in closed workbook
    By newbie-excel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-04-2013, 12:51 PM
  4. [SOLVED] Print Macro to email PDFs of specific pages of a workbook to specific recipients
    By mike_vr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 12:34 PM
  5. [SOLVED] Macro to save workbook to specific folder with a specific name, then kill/disable itself.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2012, 03:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1