I am using LyX with the listings package. I want to have Appendix A be titled "Code Listings" and then have the List of Listings.
Right now I have \lstlistoflistings in an ERT.
By using \renewcommand\lstlistlistingname{} in the pre-amble I was able to get the "Listings" text removed. But it still breaks to a new page. How do I keep it from doing that?

report,book,memoir, ...? The previous assumptions suggest you're using a class that provides a\chapter. If there's no more chapters following Appendix A, then you can add\let\cleardoublepage\relaxand\let\clearpage\relaxin another ERT which should remove the new page. However, you would still have a complete chapter-style setting, which may not look good starting part-way on a page. – Werner Apr 29 '12 at 6:20