chriscsmith
New Member
- Joined
- Dec 20, 2011
- Messages
- 15
Afternoon all!
I've searched various forums including this one and ozgrid and can't seem to find a solution '1004 error'.
Here is what I have thus far (advanced apologies if the embedded code table doesn't appear, I couldn't locate the toggle for that):
Dim mdteScheduledTime As Date
Sub RefreshData()
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook1.xlsm", Type:=xlExcelLinks
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook2.xlsm", Type:=xlExcelLinks
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook3.xlsm", Type:=xlExcelLinks
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook4.xlsm", Type:=xlExcelLinks
' And so on with the other 100 workbooks
mdteScheduledTime = Now + TimeSerial(0, 1, 0)
Application.OnTime mdteScheduledTime, "RefreshData"
End Sub
Sub StopRefresh()
Application.OnTime mdteScheduledTime, "RefreshData", , False
End Sub
I've searched various forums including this one and ozgrid and can't seem to find a solution '1004 error'.
- I have a master file hosted on Sharepoint - no one opens or uses this file other than me; and I only use it for monitoring.
- This master file has vlookup links (essentially cell references) to 104 other excel workbooks hosted on Sharepoint.
- Users access their workbooks make updates, save and close.
- The master file captures all updates that have been made through all 104 workbooks, compiles an analysis based on an organizational heiarchy, recognizes the input from the highest level of management and places it into 3 seperate fields.
- Now, the when any other users throughout the company access their workbook via sharepoint, the field fields that are recognized (through the highest level of mgmt) get pulled from the master and placed in their workbook through a vlookup.
Here is what I have thus far (advanced apologies if the embedded code table doesn't appear, I couldn't locate the toggle for that):
Dim mdteScheduledTime As Date
Sub RefreshData()
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook1.xlsm", Type:=xlExcelLinks
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook2.xlsm", Type:=xlExcelLinks
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook3.xlsm", Type:=xlExcelLinks
ThisWorkbook.UpdateLink Name:="http://spintranet.mitchell.com/calibration/workbook4.xlsm", Type:=xlExcelLinks
' And so on with the other 100 workbooks
mdteScheduledTime = Now + TimeSerial(0, 1, 0)
Application.OnTime mdteScheduledTime, "RefreshData"
End Sub
Sub StopRefresh()
Application.OnTime mdteScheduledTime, "RefreshData", , False
End Sub