ok I got it. I am not sure what but when I deleted the ByVal items in the Private Sub Panel_Rest line, it now works.