>It works for me in Excel 2003.
Perhaps that is the problem, that I was testing on an older Excel version.
>>I tried that, and got the error message, that the property ActiveWindow was not found. But I will try again tomorrow, just in case I committed some mistake.
>>
>>>
oExcel.ActiveWindow.FreezePanes = .T.
>>>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)