+ Reply to Thread
Results 1 to 4 of 4

Master data to be updated from import sheet.

  1. #1
    Registered User
    Join Date
    03-04-2020
    Location
    Oxford,England
    MS-Off Ver
    2010
    Posts
    2

    Red face Master data to be updated from import sheet.

    Hello everybody,

    I have a quick question. I have a main master file which is full of data and each row has a unique id in cell A. Master Data should ideally be updated with export from our share point. I have put in a macro to always import an export data from the system into a new sheet, however I would need a macro to compare everything in column A in "Master data" to column A in "Current report" and if there are any values (unique IDs) in "Current report" that are not already on "Master data", that it pastes those as values in first available row in column A of "Master file". I hope my question makes sense!

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Master data to be updated from import sheet.

    Hi SvenOpolcer,

    Welcome to the forum!!

    Let me know how this goes:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    03-04-2020
    Location
    Oxford,England
    MS-Off Ver
    2010
    Posts
    2

    Re: Master data to be updated from import sheet.

    Hi Robert,

    Thank you for such a quick answer, Unfortunately i get a error which says "no cells were found" on this line of code((wsCopyFrom.Cells(2, 1), wsCopyFrom.Cells(lngLastRow, 1)).SpecialCells(xlCellTypeVisible).Copy Destination:=wsCopyTo.Range("A" & Rows.Count).End(xlUp).Offset(1, 0) ). When I run the macro again, it seems to copy over 2 lines, one blank one, and one which is a heading. I probably should of mentioned master data starts in row 5 (due to various headings), and in current report the entries start in row 2.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Master data to be updated from import sheet.

    Not sure as it works for me (refer attached)
    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)

Similar Threads

  1. [SOLVED] VBA to copy master sheet and insert new line on summary sheet with updated formulas
    By Scott 2020 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2020, 11:06 AM
  2. Replies: 3
    Last Post: 09-14-2016, 01:07 PM
  3. Updated Location in Master Sheet
    By thyzt in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2016, 02:54 PM
  4. Auto Updated Master Sheet when Other Data Sheet add new data
    By koolguys4u in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-23-2013, 05:36 AM
  5. master sheet updated itself with new added sheets
    By greatairi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2013, 03:04 AM
  6. Master sheet continually updated?
    By dlab85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2012, 01:04 PM
  7. Updated master sheet from inserted spreadsheet
    By mckennashere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2012, 04:46 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