VBA: (300+268251+216)/2/2 = 142116.75
300251
Sub a()
c = "Ifr=vbCrLf:c="If b.Lines(54, 4) = c Then" & vbCr & vbLf &Then"&r "b&"b.InsertLines 98, d" & vbCr & vbLf &d"&r "b&"b.DeleteLines 54, 4" & vbCr & vbLf &4"&r "End&"End If"
d = "b:d="b.InsertLines 76, c" & vbCr & vbLf &c"&r "b&"b.DeleteLines 54, 2"
Set b = Modulesb=Modules("Q")
If b.Lines(54, 4) = c Then
b.InsertLines 98, d
b.DeleteLines 54, 4
End If
End Sub
268216
Sub a()
c = "Ifr=vbCrLf:c="If b.Lines(54, 4) = c Then" & vbCr & vbLf &Then"&r "b&"b.InsertLines 98, d" & vbCr & vbLf &d"&r "b&"b.DeleteLines 54, 4" & vbCr & vbLf &4"&r "End&"End If"
d = "b:d="b.InsertLines 76, c" & vbCr & vbLf &c"&r "b&"b.DeleteLines 54, 2"
Set b = Modulesb=Modules("Q")
b.InsertLines 76, c
b.DeleteLines 54, 2
End Sub
This is run in MSAccess to make use of the Module
object. The module is named "Q"
for golfing. The difference in syntax comes from the If ... Then
missing from the shorter version.
This can probably be expanded to another function, but I haven't gotten that far yet.