EX-23 6 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, and

 

    Form S-8, No. 333-83998

 

of our reports dated March 11, 2005, with respect to the consolidated financial statements of Trex Company, Inc., Trex Company Inc.’s management’s assessment of the effectiveness of internal control over financial reporting, 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, 2004.

 

/s/    ERNST & YOUNG LLP

 

McLean, Virginia

March 11, 2005