+ Reply to Thread
Results 1 to 3 of 3

copy the worksheet from one Excel file to another Excel file

  1. #1
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    204

    copy the worksheet from one Excel file to another Excel file

    Please help in Excel macro how can I copy the worksheet from one Excel file to another Excel file
    I Have 3 excel file :
    1.Master.xlsm
    2.excel file with name in cell A2 (example Data1.xlsx) with worksheet on it "Blad1" in the folder directory in Cell B2 (example C:\Excel Data\Databron)
    3.excel file with name in cell A3 (example Data2.xlsm) in the folder directory in Cell B3 (example C:\Excel Data\Kopie)

    copy the worksheet "Blad1"from the file named in cell A2 to the file named in cell A3 then save this file
    with a name in cell A9 and folder directory in Cell B9

    if possible this file need to be open after file is save.

    I made this VBA in an excel file called "Master"
    i want it this way because the file name on cell A2, A3 , A9 and directory name and folder on B2 , B3 , B9 always changes
    that why I dont want the name from the file and the directory folder on the macro

    Please check this VBA

    Please Login or Register  to view this content.
    thanks in advance
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by kirana2014; 02-12-2021 at 03:57 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: copy the worksheet from one Excel file to another Excel file

    I did not open your Master file - just change the one sheet name where indicated. Put the code into Master.xlsm

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    204

    Re: copy the worksheet from one Excel file to another Excel file

    Dear Bernie,
    Thank you for your support, is working

    Well Done

+ 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] Copy excel file from a specific folder to the open excel worksheet.
    By timacrafts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2020, 04:37 PM
  2. [SOLVED] File dialog box to open a excel file then copy data close file
    By mmikem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2019, 09:57 AM
  3. Copy data from txt file to excel file then delete text file
    By gratedane8 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-11-2018, 07:36 PM
  4. VBA to copy data from excel worksheet in zip file
    By gee83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-11-2016, 12:06 PM
  5. Replies: 3
    Last Post: 01-09-2015, 08:29 AM
  6. [SOLVED] How to copy a worksheet 86 times into the same excel file with the given name
    By 1tane1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-26-2014, 08:01 AM
  7. [SOLVED] Copy a worksheet to another excel file
    By Mike S. in forum Excel General
    Replies: 4
    Last Post: 06-10-2005, 07:05 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