+ Reply to Thread
Results 1 to 1 of 1

Macro to Move and Update Data from one Workbook to Another

  1. #1
    Registered User
    Join Date
    12-13-2021
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    3

    Macro to Move and Update Data from one Workbook to Another

    I am trying to see if there is a macro that I can use in a Master file that will check a Template file, and based on a letter in Column I, will move certain data to the Master file and update it. Each letter in Column I will have it's own argument. For example:

    If the letter in Column I of the Template file = A, Match the account number in Column A of the Template file to Column A of the Master file, and ADD the data from Column B, or Column C, or Column D, or Column E, or Column F, or Column G, or Column H of the Template file to the existing record in the same column of the Master file.
    If the letter in Column I of the Template file = C, Match the account number in Column A of the Template file to Column A of the Master file, and CHANGE the data from Column B, or Column C, or Column D, or Column E, or Column F, or Column G, or Column H of the Template file to the existing record in the same column of the Master file.
    If the letter in Column I of the Template file = D, Match the account number in Column A of the Template file to Column A of the Master file, and DELETE the data from Column B, or Column C, or Column D, or Column E, or Column F, or Column G, or Column H of the Template file from the existing record in the same column of the Master file.
    Basically, I want to be able to have people enter additions, changes, and deletions into the Template file, and when I run the VBA macro in the Master file, it enacts those changes automatically without having to manually key each update. The columns in each workbook are exactly the same as far as number of columns and headers. The Master file with contain approx. 5,000 records that only occur once, no duplicates, but the Template file may have duplicates based on how many time something is altered, however that could be worked around if needed to avoid errors.

    I have attached examples of the Master File and Template File.

    Thanks!
    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. Macro to find and update data in different workbook
    By maxhecht2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2016, 04:47 PM
  2. Macro to move certain data from one workbook to another
    By MIKETALEA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2015, 05:12 PM
  3. Excel Macro Move Splited Data to Assigned Workbook Sheet's
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2013, 07:59 AM
  4. VBA / Macro help needed to auto update the data from another workbook
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-26-2013, 11:52 PM
  5. Replies: 0
    Last Post: 05-10-2013, 08:08 AM
  6. Cut and move data by macro (?) from one workbook to master workbook
    By esylvester in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2012, 02:57 AM
  7. Move some data to new workbook - my attempted macro is no good
    By marlea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2005, 05:50 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