Try
Dimen4 = WorksheetFunction.Match(sum.Range("A19"), temp.Sheets(1).Range("A1:A200"))
colNum4 = WorksheetFunction.Match(sum.Range("A19"), temp.Sheets(1).Range("A36").EntireRow)
and probably change it in all lines. It would fail everywhere I guess..
The reasons are:
Range("A1:200")
is invalid syntax
As DG pointed out in the comment below, Range("1:1").Address
does work, it is not at all invalid!