+ Reply to Thread
Results 1 to 7 of 7

Find and updata data from one sheet to another

  1. #1
    Registered User
    Join Date
    09-26-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Find and updata data from one sheet to another

    Hi guys,

    I have two workbooks.

    Basically, one workbook contains a comment generator and other contains unique ID against which I need to update that comment.

    How do I do this with just one click of a buton??

    Workbook 1

    Comment : ASDFGH DSFSD ASDSD on 12/13/009

    Workbook 2

    Unique ID Client Name Client ADD Contact Comment
    123 abc --- 4568 ASDFGH DSFSD ASDSD on..


    What I wish to achive is that when i press a button on workbook 1, it should find that unique ID in 2nd workbook and update the comment against that.


    Please help....

  2. #2
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Find and updata data from one sheet to another

    Hello,

    Sorry i am not able to understand your query, maybe put up an example?

    Thank You
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Registered User
    Join Date
    09-26-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find and updata data from one sheet to another

    Here is a sample sheet...
    sorry its messed up but should give you a fair idea..

    Its easy i know..but maybe not for me ;-)
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find and updata data from one sheet to another

    Hi amarrforever
    I would think you may want a change event macro rather than a button. Try the attached. If you really want a button, we can make that happen.
    Are these two workbooks or two worksheets in the same workbook?
    John
    Attached Files Attached Files
    Last edited by jaslake; 12-26-2009 at 02:26 AM. Reason: Question added
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Registered User
    Join Date
    09-26-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find and updata data from one sheet to another

    thanks man...

    I wish them to be separate workbooks stored in shared location.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find and updata data from one sheet to another

    Hi amarrforever
    What about this
    you may want a change event macro rather than a button. Try the attached. If you really want a button, we can make that happen.
    John

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Find and updata data from one sheet to another

    Hi amarrforever
    I've rewritten the code such that it works on two workbooks as you stated. The code still works on the change event principle.
    I've attached two workbooks, Master and Comments. All the code exists in Master. Master has code in ThisWorkbook that opens Comments when Master is opened and it has a Before Close event that saves and closes Comments.
    Master also has code in Master Sheet that is the change event code and Master has one module. I moved the Find_ID procedure to this module to take advantage of Public variables.
    If you have issues, let me know.
    John
    Attached Files Attached Files

+ 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