Is it something like this you need? http://stackoverflow.com/questions/1...me-of-vba-code