I have a macro in my workbook that opens another Excel workbook to copy some data from it. At the end of my macro, I close the source workbook but lately this is resulting in the macro hanging up and after a period of time Excel shuts down. There is no error message, just hangs up.
I have tried two methods. In both methods the name wbCopyFrom, is the name of the source workbook.
Method 1 is quite simple ... only a single line of code ...
I just tried this method but with same result ...
Any assistance is appreciated.
Regards,
Steve
I have tried two methods. In both methods the name wbCopyFrom, is the name of the source workbook.
Method 1 is quite simple ... only a single line of code ...
VBA Code:
:
:
wbCopyFrom.Close SaveChanges:=False
:
:
I just tried this method but with same result ...
VBA Code:
:
:
wbCopyFrom.Activate
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
:
:
Any assistance is appreciated.
Regards,
Steve