+ Reply to Thread
Results 1 to 5 of 5

Locate Correct Row in another Workbook

  1. #1
    Forum Contributor
    Join Date
    11-20-2008
    Location
    UK
    Posts
    132

    Locate Correct Row in another Workbook

    I have two workbooks.

    Workbook 1 is used to generate job sheets and there is a macro that generates a job number for each job sheet. There is another macro that updates the 2nd workbook with a summary of the job on one row.

    So Workbook 1 has all the details of one specific job whereas Workbook 2 has a summary of every job that Workbook 1 has generated a job sheet for.

    What I would like to do is to have a button in the job sheet with a macro assigned to it that when clicked will locate the relevant row in Workbook 2, find the end of that row and enter the word Complete into the next available cell. The cell would always be in Column I.

    This is the code I'm currently using to enter the summary data into Workbook 2:

    Please Login or Register  to view this content.
    The job number is stored in cell D2 in Workbook 1 and this would be inserted into Column A of workbook 2 so it would be the job number that could be used to locate the correct row.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,231

    Re: Locate Correct Row in another Workbook

    Hi peakoverload
    Any chance of a sample file upload depicting a before & after
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Locate Correct Row in another Workbook

    marks job complete if found else msgbox

    Please Login or Register  to view this content.
    Kind regards
    Leo

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Locate Correct Row in another Workbook

    Another one

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  5. #5
    Forum Contributor
    Join Date
    11-20-2008
    Location
    UK
    Posts
    132

    Re: Locate Correct Row in another Workbook

    Wow! That's perfect, thank you so much!!

+ 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. Locate a reference to another workbook in excel
    By Nbisgaard in forum Excel General
    Replies: 3
    Last Post: 07-10-2015, 09:44 AM
  2. macro to locate locate text string and copy/paste offset range
    By guystanley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2014, 08:46 PM
  3. Locate Today's Date Within Row on Opening Workbook
    By liam_bettinson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2011, 06:07 AM
  4. How to locate the first sheet in a workbook?
    By Wino in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2009, 11:05 AM
  5. Locate a max from range defined in other sheet in workbook
    By yasmine26 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-11-2008, 12:29 PM
  6. macro to locate and close workbook
    By ConorOB1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2007, 09:00 AM
  7. Replies: 2
    Last Post: 02-02-2005, 10:06 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