Revolver Note



 Exhibit 4.2 
 REVOLVER NOTE 
  

			
	$55,000,000.00	  	 Winston-Salem, North Carolina
 January 6, 2012


 For value received, TREX COMPANY, INC., a Delaware corporation (the
“Borrower”), promises to pay to the order of BRANCH BANKING AND TRUST COMPANY (the “Lender”), for the account of its Lending Office, the principal sum of FIFTY-FIVE MILLION AND NO/100 DOLLARS ($55,000,000.00), or such lesser
amount as shall equal the unpaid principal amount of each Revolver Advance made by the Lender to the Borrower pursuant to the Credit Agreement referred to below, on the dates and in the amounts provided in the Credit Agreement. The Borrower promises
to pay interest on the unpaid principal amount of this Note on the dates and at the rate or rates provided for in the Credit Agreement. Interest on any overdue principal of and, to the extent permitted by law, overdue interest on the principal
amount hereof shall bear interest at the Default Rate, as provided for in the Credit Agreement. All such payments of principal and interest shall be made in lawful money of the United States in federal or other immediately available funds at the
office of Branch Banking and Trust Company, 200 West Second Street, 16th Floor, Winston-Salem, NC 27101, or at such other address as may be specified from time to time pursuant to the Credit Agreement. 
 All Revolver Advances made by the Lender, the interest rates from time to time applicable thereto and all repayments of the principal thereof may be recorded by the Lender and, prior to any transfer
hereof, endorsed by the Lender on the schedule attached hereto, or on a continuation of such schedule attached to and made a part hereof; provided that the failure of the Lender to make, or any error of the Lender in making, any such
recordation or endorsement shall not affect the obligations of the Borrower hereunder or under the Credit Agreement. This Note is secured by, among other security, the Collateral Documents, as the same may be modified or amended from time to time.

 This Note is one of the Revolver Notes referred to in the Amended and Restated Credit Agreement dated as of January 6,
2012 (as amended, restated, replaced or otherwise modified from time to time, the “Credit Agreement”), among the Borrower, the Lenders listed on the signature pages thereof and their successors and assigns, Branch Banking and Trust
Company, as Administrative Agent, Swing Line Lender and Letter of Credit Issuer, Branch Banking and Trust Company and Wells Fargo Capital Finance, LLC, as Collateral Agents, and BB&T Capital Markets, as Lead Arranger. Terms defined in the Credit
Agreement are used herein with the same meanings. Reference is made to the Credit Agreement for provisions for the prepayment and the repayment hereof and the acceleration of the maturity hereof. 

The Borrower hereby waives presentment, demand, protest, notice of demand, protest and nonpayment and any other notice required by law
relative hereto, except to the extent as otherwise may be expressly provided for in the Credit Agreement. 
 The Borrower
agrees, in the event that this Note or any portion hereof is collected by law or through an attorney at law, to pay all reasonable costs of collection, including, without limitation, reasonable attorneys’ fees. 







 IN WITNESS WHEREOF, the Borrower has caused this Note to be duly executed under seal, by its
duly authorized officers as of the day and year first above written. 
  

					
	TREX COMPANY, INC.,	 	(SEAL)
	  a Delaware corporation	 	
			
	By:	 	 /s/ James E. Cline
	 	(SEAL)
	Name:	 	James E. Cline	 	
	Title:	 	Vice President and	 	
		 	Chief Financial Officer	 	



  
 - 2 -









 Revolver Note (cont’d) 

ADVANCES AND PAYMENTS OF PRINCIPAL 
  

											
	 Date
	  	 Interest

Rate
	  	Interest
Period
(if applicable)	  	Amount
of
Advance	  	Amount of
Principal
Repaid	  	Notation
Made By
		  		  		  		  		  	
		  		  		  		  		  	
		  		  		  		  		  	

 #2120432 (Execution) 
 204750.745 

  
 - 3 -