Hello! I've been looking from the title of this film for a couple of years now. I first saw it on TCM, and I KNEW I should have written it down then. It's in black and white, and it has sound. It's about a doctor that digs up corpses in order to study human anatomy and further medical knowledge about surgeries. He does autopsies on them. The catch is the film is set sometime in the 1700's (I want to say shortly after the American Revolution) and it takes place in one of the original colonies, so surgery and digging up corpses are huge no-nos, obviously.
Near the beginning of the film he's about to get hanged but accidentally gets saved by this group of ruffians. He then has to help cure one of the ruffians (I think it was either the leader or the leader's wife) of an ailment under threat of death. Afterwards they're really impressed and the leader wants the doctor to stay with them. The doctor doesn't want to though because he wants to continue his studies. I'm pretty hazy on the middle part of the movie, but he ends up settling in a town. He's very well liked and considered respectable, and there's a female love interest. However, he's still snatching bodies to study. There's only so many places to get bodies in the area, so people are starting to notice that graves are being desecrated. He's eventually found out. The ending of the movie deals with a shoot out between the ruffians and towns people at a house. The doctor performs surgery on an ill woman during the shootout and saves her life. The movie has a lot of humor. I wouldn't call it a comedy though.