Yes, thanks, it did better than help, it gave me a whole new idea on how to approach the problem: Instead of adding my code to the BeforeClose method and worrying about whether the workbook had been saved or not, I just added my code into the BeforeSave method. That way my code executed every time the workbook was saved, which is precisely what I wanted. Thanks for your help, and my apologies for not thanking you earlier.
Steve.