freeze not working properly...?

Hello,

I have imported an excel file with macros. It seems to work OK except for 2 things. 1. the macro buttons don’t work - I guess I can rewite them in LO.
2. Freeze frames does not seem to work properly. When I sort by date, the whole of the sort row goes to the bottom and messes up the spreadsheet.

Can this problem of freeze frames be fixed?
I cannot seem to attach the calc file so I have uploaded it to mailbigfile - here is the link http://mbf.cc/u6Nzti