18th Regiment, Virginia Infantry (Confederate)
18th Infantry Regiment completed its organization in May, 1861. Its members were recruited at Danville and Farmville, and in the counties of Nottoway, Cumberland, Prince Edward, Appomattox, Pittsylvania, and Charlotte. Many were captured at Sayler's Creek and only 2 officers and 32 men surrendered. The field officers were Colonels Henry A. Carrington and Robert E. Withers, Lieutenant Colonel George C. Cabell, and Major Edwin G. Wall. 
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 (Danville Blues) - many men from Danville Virginia
Company B (Danville Grays) - many men from Danville, Virginia
Company C (Nottoway Rifle Guards) - many men from Nottoway County
Company D (Prospect Rifle Grays) - many men from Prince Edward County
Company E (Black Eagle Rifles) - many men from Cumberland County
Company F (Farmville Guard) - many men from Farmville, Virginia
Company G (Nottoway Grays) - many men from Nottoway County
Company H (Appomattox Grays) - many men from Appomattox County
Company I (Spring Garden Blues) - many men from Pittsylvania County
Company K (Charlotte Rifles) - many men from Charlotte County
The information above is from 18th Virginia Infantry, by James I. Robertson
- National Park Service, The Civil War Soldiers and Sailors System, (accessed 6 December 2010).