7th Regiment, Virginia Infantry (Confederate)
7th Infantry Regiment was organized in May, 1861, at Manassas Junction, Virginia, with men from Giles, Madison, Rappahannock, Culpeper, Greene, and Albemarle counties.
Only 20 officers and men were present at the surrender. Its commanders were Colonels Charles C. Flowerree, James L. Kemper, and Waller T. Patton; Lieutenant Colonel L.B. Williams, Jr.; and Major Aylett A. Swindler. 
Companies in this Regiment with the Counties of Origin
Men often enlisted in a company recruited in the counties where they lived though not always. After many battles, companies might be combined because so many men were killed or wounded. However if you are unsure which company your ancestor was in, try the company recruited in his county first.
Company A (Richardson Guards) - many men from Madison County
Company B (Rappahannock Guard) - many men from Rappahannock County
Company C (Hazelwood Volunteers) - many men from Culpeper County
Company D (Mountain Boomers) - many men from Giles County
Company E -many men from Culpeper County
Company F - many men from Greene County
Company G (Sperryville Sharpshooters) - many men from Rappahannock County
Company H (Washington Volunteers) - many men from Washington D.C. and Maryland
Company I (Holcombe Guards) - many men from Albemarle County
Company K (Madison Grays) - many men from Madison County
The information above is from 7th Virginia Infantry, by David F. Riggs.
- Johnston, David E. Four Years a Soldier. Princeton, W. Va., 1887. FHL Fiche 6082834 (5 fiche).
- Johnston, David E. The Story of a Confederate Boy in the Civil War. Portland, Ore.: Glass & Prudhomme Co., 1914. Digital version at Google Books; FHL Fiche 6082835 (5 fiche).
- Record of the Lynchburg Home Guard: Organized November 8, 1859: Mustered into the C.S. Service, April 24, 1861: Reorganized April 22, 1871. Lynchburg, Va.: Bell, Browne & Co., Printers, 1877. FHL Fiche 6082833. Includes a roster (see page 3).
- National Park Service, The Civil War Soldiers and Sailors System (accessed 4 January 2011).