+ Reply to Thread
Results 1 to 2 of 2

Vba macro help on copying specific worksheeets in a master workbook

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    UK
    MS-Off Ver
    2010
    Posts
    1

    Vba macro help on copying specific worksheeets in a master workbook

    Excel macro which copies the last two worksheets of 5 workbooks lying in a certain folder on desktop , into a new workbook named as output_DDMMYYHHMMSS.xlsx

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Vba macro help on copying specific worksheeets in a master workbook

    Welcome to the forum
    Amend to suit
    Assumes all files have extension ".xlsx"
    Only filename (NOT Extension) required in array
    fPath needs to be the full folder path followed by "\"

    In standard module:
    Please Login or Register  to view this content.
    Note
    Variable wb is not dimensioned with a variable type - used as variant, string & workbook
    Last edited by kev_; 03-01-2018 at 12:49 AM. Reason: Adjusted code
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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] Moving while copying a sheet from various workbook to Master workbook
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-09-2017, 11:19 AM
  2. [SOLVED] Copying and sorting data from various workbook to a master workbook
    By whoosh in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-08-2017, 11:55 AM
  3. VBA copying to master workbook for 8 workbooks
    By Roadhouse in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-24-2016, 03:46 PM
  4. [SOLVED] Running macro in workbooks before copying ranges to Master Workbook
    By kwhelanne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2014, 11:31 AM
  5. [SOLVED] Macro for Copying Cels from All Workbooks to a Single Master Workbook
    By JohnnyJ2013 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-25-2013, 05:51 AM
  6. Conditioned copying/pasting of specific cells from multiple workbooks to master workbook
    By Ziad Homaidan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2013, 11:39 AM
  7. Macro opens some MS workbooks, takes specific data in Master Workbook, then closes.
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-04-2010, 05:41 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