+ Reply to Thread
Results 1 to 4 of 4

Find same row in another sheet

  1. #1
    Registered User
    Join Date
    10-21-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    59

    Find same row in another sheet

    Dear Experts,

    Iam looking for VBA to search row on based of selected cell in sheet1.

    For example. I have some data in Sheet2, and in sheet1 also. What I want is, when I double click on any cell in sheet1, macro should search that entire row in sheet2 and color that row.

    Example for structure of data is also attached.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Find same row in another sheet

    Your data isn't sufficiently different to do that, by which criteria should it search?
    Not all forums are the same - seek and you shall find

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Find same row in another sheet

    Check out this site
    http://www.rondebruin.nl/find.htm#Color

    I slightly modified the code to work with the double click



    Please Login or Register  to view this content.
    This worksheet code initiates the "Color_cells_In_Range_Or_Sheet" macro

    Please Login or Register  to view this content.
    I have been looking at it for too long trying to figure out why the "Time From" and "Time To" cannot be found in Sheet2.

    Hopefully another set of eyes will help in solving this part.

  4. #4
    Registered User
    Join Date
    10-21-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Find same row in another sheet

    Dear Simon and Davesexcel

    Thanks for your reply.

    Dear Simon, I highly appreciate your reply,it really helped me a lot to learn something more. I am not expert in VBA, therefore i need your little more efforts. I had Installed your VBA codes, it worked perfectly, and i found that searching criteria it the cell in which we double click, but I want the searching criteria that complete row in which we selected the cell.


    I had attached one more sample with your installed VBA, if you click on "Amman" in sheet(1), it will highlight all "Amman" found rows in Sheet(2), where as I want to be highlighted, completely matching row in both sheets, (in other words, duplicate row in sheet(2) ).



    Thanks
    Attached Files Attached Files
    Last edited by ali84pk; 07-05-2010 at 02:59 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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