>when i code directly in the Click event of the grid header, say for example
>
>wait window "X",
>
>it works without any problems,
>
>however i am unclear on how to do this programatically,
>
>i get the error Click is an event, method or object error.
>
>thanks
Aren't you "doing things programmatically" when you type code?
If you want to attach commands to an event, you may want to check the BindEvent() function.
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)