+ Reply to Thread
Results 1 to 2 of 2

Combining files

  1. #1
    Registered User
    Join Date
    05-20-2019
    Location
    Londyn
    MS-Off Ver
    2010
    Posts
    3

    Combining files

    Hi, I have a problem when starting my macra. Maybe more about its operation. The macro task is to combine .xlsx or .xls files, preserving their appearance (formulas, comments, colors) from row A2 down to column P. I would also like the macro in the situation when the file is filtered to copy only the filtered data.
    Below I put my macro (they only copy from the column A2 down) which does not work very well, it hangs. And I would prefer that the selected files were not selected using the path but as in the files (represent = Application.GetOpenFilename (FileFilter: = "Excel files (*.), *. Xlsx,", _). If someone knows some macro for the first assumption that is, to connect files while maintaining its appearance from a poem (A2: O) down it would help me.

    I get an error after trying to run the macro below: "Bad file name or numer".

    Please Login or Register  to view this content.
    Last edited by pine89fcb; 05-21-2019 at 03:16 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Combining files

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Combining Two Excel Files into One
    By bbraden01 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 01-29-2013, 04:10 PM
  2. Combining two CSV files
    By nsurendiran in forum Excel General
    Replies: 10
    Last Post: 12-30-2010, 06:25 AM
  3. Combining files to print
    By GyverX in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2010, 04:09 PM
  4. Combining 12 files into one sheet
    By lennydude in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-30-2010, 03:17 PM
  5. combining files
    By NuHopeDeb in forum Excel General
    Replies: 6
    Last Post: 03-01-2009, 08:09 PM
  6. Combining two files together
    By Chuck@LCM in forum Excel General
    Replies: 1
    Last Post: 01-16-2007, 02:27 PM
  7. combining excel files
    By RicM in forum Excel General
    Replies: 3
    Last Post: 01-06-2006, 12:20 PM
  8. [SOLVED] combining files
    By Harlen in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-20-2005, 04:06 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