EX-23 3 dex23.htm EXHIBIT 23 -- CONSENT OF ERNST & YOUNG LLP Exhibit 23 -- Consent of Ernst & Young LLP

Exhibit 23

Consent of Ernst & Young LLP, Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the following Registration Statements

 

   

Registration Statement (Form S-8, No. 333-76847),

 

   

Registration Statement (Form S-8, No. 333-83998),

 

   

Registration Statement (Form S-8, No. 333-124685), and

 

   

Registration Statement (Form S-8, No. 333-150690);

of our reports dated August 7, 2009, with respect to the consolidated financial statements and schedule of Trex Company, Inc., and the effectiveness of internal control over financial reporting of Trex Company, Inc., included in this Annual Report (Form 10-K/A) for the year ended December 31, 2008.

/S/ ERNST & YOUNG LLP

Richmond, Virginia

August 7, 2009