+ Reply to Thread
Results 1 to 2 of 2

Macro to open file, filter data and copy to another workbook/sheets

  1. #1
    Registered User
    Join Date
    11-17-2017
    Location
    POLAND
    MS-Off Ver
    2013
    Posts
    25

    Macro to open file, filter data and copy to another workbook/sheets

    Hi,

    I'm about to create a macro to:
    - open a file,
    - if an input file was chosen open new workbook,
    - create there three worksheets in that workbook, name the worksheets as Summary, A, B,
    - in those created worksheets A and B paste the values from the input file with specific document type, either A or B,
    - in worksheets summary create a small table with total amount for each document type,
    - save the final workbook in the same folder with the macro.

    I attached below two files, one with the sample input data (Input.xlsx) and the other (Output.xlsx) how the new workbook should looks like (three sheets: Summary, A and B and in Summary sheet a simple table with total amount.

    Here I have the first part of the code and I got stuck in part with filtering the data :-/
    So, so far the code is opening the input file (if file wasn't chosen it shows a MsgBox) and creating the new workbook with three sheets with proper names.

    Please Login or Register  to view this content.
    Any idea what further code should include?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-17-2017
    Location
    POLAND
    MS-Off Ver
    2013
    Posts
    25

    Re: Macro to open file, filter data and copy to another workbook/sheets

    Sorry for double post, but can anyone help me or at least give me some hint? :-)

+ 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 open workbook, filter and copy takes much too long to execute
    By maym in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2016, 08:04 PM
  2. Replies: 2
    Last Post: 06-29-2016, 03:56 PM
  3. Want to open file, copy filtered data to new workbook and at save as new file
    By satishdu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2014, 12:39 PM
  4. [SOLVED] Open file dynamically and copy data using advanced filter
    By 4gurus in forum Excel General
    Replies: 4
    Last Post: 09-11-2013, 07:06 AM
  5. VBA Code to open a file and copy data to 2 sheets
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2012, 08:47 AM
  6. [SOLVED] Macro to copy data from open workbook to next open line of new workbook
    By nhtodd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 09:42 PM
  7. Macro to copy data from other workbook - let user choose which open workbook
    By ssu95bm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2011, 11:17 AM

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