Dr. H. Robert Veit, 47, Maryland educator who was director of special education for Montgomery County schools from 1965 to 1967, died of cancer Sunday in his home in Silver Spring.

Dr. Veit was a native of Philadelphia. He earned a bachelor's degree at Pennsylvania State University, and a master's and a doctoral degree in education at George Washington University.

He came to this area in the 1950s. He was a teacher at Eastern Junior High School in Silver Spring, a counselor at North Bethesda Junior High, and assistant principal at Montgomery Blair High School in Silver Spring before becoming head of special education for the couty.

Dr. Veit directed a federal special education project in Aiken, S.C., from 1969 to 1969, then spent three years as deputy superintendent of schools in Elkhart, Ind., before returning there in 1971.

He had worked for the Maryland State Department of Education, as an executive assistant to the state superintendent of education and then as a liaison officer with local school authorities, for the past eight years.

He served in the Army from 1953 to 1955.

Dr. Veit was a life member of the National Education Association and also had belonged to the American Association of School Administrators.

He was a member of Grace Episcopal Church in Silver Spring for the past 25 years. He was a member of the vestry and taught Sunday School. He was the church's senior warden at the time of his death.

He is survived by his wife, the former Betty Gleim, and two daughters, Kathryn and Elizabeth, all of Silver Spring, and his mother, Florence Veit of Dunedin, Fla.

The family suggests that expressions of sympathy be in the form of contributions to the Grace Episcopal Church Endowment Fund in Dr. Veit's memory.