Sub Update1()
If runThem Then
Application.ScreenUpdating = False
Worksheets("Place Data").Range("A49:AJ242").Replace What:=",29", Replacement:=",30", LookAt:=xlPart, SearchOrder:=xlByRows
DoEvents
Set oddsFile = CreateObject("Scripting.FileSystemObject")
oddsFile.CopyFile "C:\Program Files\Aus\Aus4\dds.txt", "C:\Program Files\Aus\Aus4\dds2.txt"
Worksheets("Place Data").Range("EB2").QueryTable.refresh BackgroundQuery:=False
DoEvents
Application.OnTime Now() + TimeSerial(0, 0, 1), "Update2"
Application.ScreenUpdating = True
End If
End Sub
Sub Update2()
If runThem Then
Application.ScreenUpdating = False
Worksheets("Place Data").Range("A49:AJ242").Replace What:=",30", Replacement:=",29", LookAt:=xlPart, SearchOrder:=xlByRows
DoEvents
Set oddsFile = CreateObject("Scripting.FileSystemObject")
oddsFile.CopyFile "C:\Program Files\Aus\Aus4\dds.txt", "C:\Program Files\Aus\Aus4\dds2.txt"
Worksheets("Place Data").Range("EB2").QueryTable.refresh BackgroundQuery:=False
DoEvents
Application.OnTime Now() + TimeSerial(0, 0, 1), "Update1"
Application.ScreenUpdating = True
End If
End Sub
|