EX-23 8 dex23.htm EXHIBIT 23 Exhibit 23

Exhibit 23

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

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

 

   

Form S-8, No. 333-76847,

 

   

Form S-8, No. 333-83998, and

 

   

Form S-8, No. 333-124685;

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

/s/ ERNST & YOUNG LLP

Richmond, Virginia

March 14, 2008