EX-23.2 3 dex232.txt EXHIBIT 23.2 EXHIBIT 23.2 CONSENT OF ERNST & YOUNG LLP, INDEPENDENT AUDITORS We consent to the reference to our firm under the caption "Experts" in the Registration Statement (Form S-3) and related prospectus of Trex Company, Inc. for the registration of 353,779 shares of its common stock and to the incorporation by reference therein of our report dated February 8, 2002, with respect to the consolidated financial statements of Trex Company, Inc. included in its Annual Report (Form 10-K) for the year ended December 31, 2001, filed with the Securities and Exchange Commission. /s/ Ernst & Young LLP McLean, Virginia November 20, 2002