Hi Pifou, Roberto,
1) Thanks to Roberto for the macro. Easy, useful, elegant... well done Roberto... 5 stars.
2) Any Panel Function (GetPanelAttribute for example) should return an error if the panel handle is invalid. With that you can write your own PanelStillExists function.
Regards,