+ Reply to Thread
Results 1 to 10 of 10

Find cell value on master sheet and update range or add if not found

  1. #1
    Registered User
    Join Date
    11-16-2010
    Location
    Stratford, WI
    MS-Off Ver
    Excel 2003
    Posts
    49

    Find cell value on master sheet and update range or add if not found

    Hi,

    I have a macro that will copy row data from one worksheet to another Master worksheet (Job_Breakdown_Log). What I would like to do is either add another macro or update the current one to loop through the data on the Active Worksheet starting in row P57 and either update the cell values on the Master worksheet or add as a new line if it is not already there. This would be based on cell values in column A on the Master worksheet. I was going to try and paste links but I couldn't figure out how that would work?

    Here is the code I have so far

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,525

    Re: Find cell value on master sheet and update range or add if not found

    Try this on a copy of your workbook because I don't know if I understand your requirement right.
    Change references where required.
    Please Login or Register  to view this content.

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

    Re: Find cell value on master sheet and update range or add if not found

    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.

  4. #4
    Registered User
    Join Date
    11-16-2010
    Location
    Stratford, WI
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Find cell value on master sheet and update range or add if not found

    Thank you AlphaFrog -- that appears to work perfectly!!

  5. #5
    Registered User
    Join Date
    11-16-2010
    Location
    Stratford, WI
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Find cell value on master sheet and update range or add if not found

    I do have a question after testing this further, when I run the macro the row below is highlighted on the Job_Breakdown_Log. When I run the macro again it skips a line, how can I make it go to cell A1 or something and not have that blank row?

    I have tried this but I get an error?

    Please Login or Register  to view this content.

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

    Re: Find cell value on master sheet and update range or add if not found

    My guess is that "row below" that is highlighted is not empty. The last cell in column P maybe has a space character in it that makes it look empty but it's not.

  7. #7
    Registered User
    Join Date
    11-16-2010
    Location
    Stratford, WI
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Find cell value on master sheet and update range or add if not found

    You are right there is a formula in it that returns "", is there a way to update that?

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

    Re: Find cell value on master sheet and update range or add if not found

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-16-2010
    Location
    Stratford, WI
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Find cell value on master sheet and update range or add if not found

    Awesome - that did it, thank you for your prompt reply!!

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

    Re: Find cell value on master sheet and update range or add if not found

    You're welcome. Thanks for the feedback.

+ 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. Find and update multiple sheet tabs with new data based on range of cell values.
    By robcgp1200 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2017, 04:59 PM
  2. Replies: 7
    Last Post: 11-09-2016, 05:37 PM
  3. Find a string in specified cell range if found copy the cell
    By aykuncetinkaya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-03-2014, 06:12 PM
  4. Replies: 1
    Last Post: 09-15-2014, 01:03 PM
  5. Find Cell Value in Workbook; Paste Cell Range When Found
    By bbarber71389 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2014, 04:18 PM
  6. [SOLVED] Find cell in Range and If found then copy to next sheet
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2013, 10:56 AM
  7. [SOLVED] How to find a cell value and when found give a value from other cell range.
    By tegno in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 04:09 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