+ Reply to Thread
Results 1 to 3 of 3

update master file with filtered data

  1. #1
    Registered User
    Join Date
    08-17-2009
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    3

    update master file with filtered data

    Hello people,

    I have a master xls file that needs to be updated monthly with data from raw data file.
    I want to create a button on the master file with a macro attached that will check the headers from the raw data (the file it's open) to have the same value and order like the headers in the master file, in case of differences a msg box must will say that are differances between the 2 files, and the macro will stop. I have to do this checking part because the header of the raw data file can be changed (order of the columns or titles.)
    In case there are no differences between the 2 files, I want the raw data file to do a filter on "Deal Description" column for values that contain "MDP", copy and paste data in the master file on the next available blank row, than do another filter on "Pre-Sales ID" column for values that contain "DDP", copy and paste data in the master file on the next available blank row.

    I have attached the structure of the master file were I have to add the button that will do the check and all filtering and copy and pasting.
    If anyone have done something similar I will appreciate the help.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: update master file with filtered data

    Will the raw data file be open at the time of running the macro or should the macro open it?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-17-2009
    Location
    Bucharest
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: update master file with filtered data

    Quote Originally Posted by arlu1201 View Post
    Will the raw data file be open at the time of running the macro or should the macro open it?
    raw data file should be open before you run the macro, in case it's closed should see a msg box saying that you must to open the source file

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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