+ Reply to Thread
Results 1 to 3 of 3

Automatically export a selection of individual worksheet into a master sheet

  1. #1
    Registered User
    Join Date
    01-24-2018
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    19

    Automatically export a selection of individual worksheet into a master sheet

    Hello all,
    I have say 20 employees with their own individual excel workbook to enter data into. This file is saved on our server sharepoint in a specific location.
    I only want a portion of their spreadsheet to automatically upload into my master spreadsheet also on our server into a specific area on the master sheet.
    To be specific:
    For my first employee, I would like the data from the individual sheet B3 to F42 to upload into the Master sheet B3 to F42.
    Then for the next employee I would like the data from the individual sheet B3 to F42 to go to the Master Sheet G3 to K42
    and so on for all 20 employees.
    The Master File is called "DSP_DCM_Mastersheet"
    I'll include a picture of the individual and Masterfile.

    This is about as far as I've gotten and I don't even know if putting "My File" is right or if I should use the employee's file name.

    Sub LoopThroughDirectory()
    Dim My File As String
    Dim erow
    MyFile = Dir("Where the sharepoint folder is")

    Do While Len (My File) > 0
    If MyFile = "DSP_DCM_Mastersheet.xlsm" Then
    Exit Sub
    End If

    Workbooks.Open (MyFile)
    Range ("B3:F42").Copy
    Active Workbook.Close
    Master Sheet.PNG
    Individual File.PNG

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Automatically export a selection of individual worksheet into a master sheet

    maybe this

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    01-24-2018
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    19

    Re: Automatically export a selection of individual worksheet into a master sheet

    Wow, thank you. This might do it. I'm trying but
    I am hitting a minor snag though in where to place the file and folder names if that is applicable.
    Here is what I have:
    1. The individual excel files say "Employee 1" "Employee 2" and these are stored in a sharepoint folder named "DSP DCM Individual Files" and the folder location is lets say "\\sharepoint.sharepoint.com\ws\Documents\Admin\Capacity Management"
    2. Then there is the master sheet named "DSP DCM Mastersheet" located in a folder named "DSP DCM Mastersheet" and in the sharepoint location of "\\sharepoint.sharepoint.com\ws\Documents\Admin\Capacity Management\DSP DCM Mastersheet"

    I have tried plugging in some of this information but it doesn't seem to be linking. Maybe I'm putting in too much?

    Thank you very much for your help

+ 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. Replies: 0
    Last Post: 02-01-2018, 04:52 PM
  2. [SOLVED] Macro to export each sheet after Master Sheet as separate workbook including Master
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-02-2017, 09:06 AM
  3. Replies: 7
    Last Post: 03-14-2016, 07:35 PM
  4. Automatically expand selection in Master Worksheet from linked worksheets
    By 3milychu in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 03-06-2014, 08:52 PM
  5. [SOLVED] copy the particular worksheet from closed wb,paste as individual worksheet into master vba
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2014, 10:25 AM
  6. Separate Data from Master Worksheet into Individual Worksheets
    By bhenderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2011, 02:14 PM
  7. Generate a master worksheet from individual worksheets
    By Bond007 in forum Excel General
    Replies: 16
    Last Post: 12-17-2009, 10:57 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