I have a master file with a few lists in it and I would to have it so when I update the list it updates all the lists in the other workbooks.
Here is what I have so far:
Sub UpdateList()
Dim wbk As Workbook
Dim fPATH As String
Dim fNAME As String
Dim ws As Worksheet
fPATH = "C:\Filepath"
fNAME = Dir(fPATH & "Time*.xls")
Range("A2:E97").Select
Selection.Copy
Do While Len(fNAME) > 0
Set wbk = Workbooks.Open(fPATH & fNAME)
For Each ws In wbk.Worksheets
If ws.Range("A1").Value = "BMI Timesheet" Then
With wbk.Sheets("Sheet1")
Range("C22:G117").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End With
End If
Next ws
wbk.Close False
fNAME = Dir
Loop
End Sub
This goes though and opens each workbook but it does not seem to copy the newly entered data.
Any advice on what I am doing wrong?
ListEditor is the master file
ListEditor.xlsTimeCardBMITemplateV2.xls
Bookmarks