Make panel macro a shared resource