I was simply trying to invoke one of many panels with a variable for the panel name (thePanel), rather than expicitly calling each panel (pnl01,pnl02,pnl03...).
I used the same Stringbuilder technique elsewhere in code to call subs/maintain current position in the app working fine. Just playing around and testing to see if it worked with a panel to reduce lines of code....