In an attempt to improve energy efficiency in classrooms by classroom scheduling, an algorithm was developed to solve the timetabling problem in a Thai university. The algorithm using Tabu Search, unlike all other algorithms for time tabling, aims at reducing classroom energy consumption. The algorithm took into account the number of students in each class, class time, class size, time available for both students enrolling in each class and faculty members in charge of the classes, and energy consumption in each time period of the classroom. The algorithm was used to solve the past timetabling problem of a Thai university over the academic year 2006 to 2012 and the results were compared with those of the trial-and-error traditional timetabling. It was found that the algorithm can be used to significantly lower energy consumption of the classrooms.