I'm glad that it works for you.
>Works like a charm. I didn't need to do the on key lable. Pressing alt+m will give the the same lastkey() value as an on key lable keyboarding alt+m.
>
>Thanks for your help.
>
>>Hi James,
>>
>>Maybe LASTKEY() would work ?
>>
>>>Interesting idea. How would I test if the function key was pressed?
>>>
--sb--