Hi all,
I am trying to close a workbook that I have just copied data from and I don’t want to receive the “do I want to close without saving” message.
The section of code in question currently looks like this:
I still get the message every time any idea why?
I am using excel 2007.
Many thanks,
I am trying to close a workbook that I have just copied data from and I don’t want to receive the “do I want to close without saving” message.
The section of code in question currently looks like this:
Code:
' Close customer workbook
customerWorkbook.Activate
Application.CutCopyMode = False
customerWorkbook.Close , SaveChanges = False
targetSheet.Activate
I am using excel 2007.
Many thanks,