Results 1 to 4 of 4

Transfer data from multiple workbooks into Master workbook in SharePoint

Threaded View

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Birmingham,England
    MS-Off Ver
    MS Office 2013
    Posts
    4

    Transfer data from multiple workbooks into Master workbook in SharePoint

    I am trying to run in a macro in a SharePoint excel document that copies values in standardised timesheets and pastes them into a master file in SharePoint.

    The code below works in my local drive but not when I export the master file in SharePoint and run it from there.

    Can someone please help with amending the code below so that it works in SharePoint please:

     Sub LoopThroughDirectory()
     Dim MyFile As String
     Dim erow
     Dim Filepath As String
     Filepath = "//hub.bcu.ac.uk/sites/rie/cdc-work-area/Timesheet Test RESTRICTED Access"
     MyFile = Dir(Filepath)
    
     Do While Len(MyFile) > 0
     If MyFile = "Zmaster.xlsx" Then
     Exit Sub
     End If
    
     Workbooks.Open (Filepath & MyFile)
     Range("A59:AF59").Copy
     ActiveWorkbook.Close
    
    
     erow = Sheet1.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
     ActiveSheet.Paste Destination:=Worksheets("sheet1").Range(Cells(erow, 1), Cells(erow, 35))
    
     MyFile = Dir
    
     Loop
     Range("D1").Select
     MsgBox "Process is Complete!"
     End Sub
    When I currently run this macro in SharePoint all I get is the "Process is Complete" message without anything actually happening in the Zmaster file.

    Your help is appreciated

    Thanks
    Last edited by alansidman; 01-13-2016 at 12:24 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to transfer specific row of data from multiple workbooks to master workbook using VBA
    By rajeshntiwari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2014, 08:08 AM
  2. [SOLVED] Transfer Data from Multiple SharePoint Workbooks into Master Workbook Automatically
    By bjnockle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2014, 10:37 PM
  3. Macro to transfer data from multiple workbooks into separate sheets of master file
    By salva7ore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2014, 08:18 PM
  4. Replies: 12
    Last Post: 04-18-2014, 09:05 AM
  5. Need to Consolidate multiple workbooks in to a Master Workbook w/ files on SharePoint
    By Vu Compra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 10:34 AM
  6. Help on macro to automatic transfer of data from multiple workbooks to master wkbk
    By ryuytsuken in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2013, 06:16 PM
  7. Need to Consolidate multiple workbooks in to a Master Workbook w/ files on SharePoint
    By newbietoVBA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2012, 11:30 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