+ Reply to Thread
Results 1 to 3 of 3

Macro to copy from one sheet to another -

  1. #1
    Registered User
    Join Date
    02-11-2016
    Location
    UK
    MS-Off Ver
    MS2010
    Posts
    1

    Macro to copy from one sheet to another -

    I have a sheet called "my Master sheet.xlsm" where the macro will be saved.

    The master sheet will be open, I will then also open an excel sheet that has been emailed to me (where the file name will change)

    I would like to run a macro to copy all data from cells B2:M64 from "Sheet1" of the emailed sheet, into sheet 1 of my master sheet.

    Sounds simple, but don't know how to do it without the filename of the emailed file


    any help urgently appreciated!!

    Thanks

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Macro to copy from one sheet to another -

    This nice and safe add-in will do that for you http://www.rondebruin.nl/win/addins/rdbmerge.htm

  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Macro to copy from one sheet to another -

    I'm sure there is a more elegant way, but this should do the trick. It will only work if you only have your master workbook and email workbook open, and nothing else.

    It loops through all the open workbooks (as I said there should only be two for this solution to work) and then returns the one that isn't the one running the macro.

    Please Login or Register  to view this content.

+ 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: Copy Active Sheet, Make Values Only, then Save Copy
    By brendangroff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2015, 04:34 PM
  2. [SOLVED] VBA - Macro issue copy/paste line other sheet + duplicate current sheet
    By vcourbiere in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-17-2014, 12:06 PM
  3. [SOLVED] Macro to copy data from a master sheet to separate sheet as per date using a macro
    By tmaster81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2014, 08:05 AM
  4. [SOLVED] Macro to copy cell width to new sheets (ie copy original sheet format)
    By teenyjem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2013, 07:28 AM
  5. Replies: 7
    Last Post: 12-03-2012, 03:10 AM
  6. Macro to copy Dyanmic lists then copy sheet and clear the original data
    By twiggywales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 01:06 PM
  7. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 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