neodjandre
Well-known Member
- Joined
- Nov 29, 2006
- Messages
- 950
- Office Version
- 2019
- Platform
- Windows
Hello,
I have a complex macro which transfers some worksheets from a workbook to another.
This works fine. Then my macro presents a msgbox to the user saying that "your file will now be saved".
After the user clicks OK - the following code is fired:
Now for some reason on some machines Excel crashes when attempting to save the file.
This happens irrespective of the file sizes and the contents of the files. It just crashes saying Excel encountered an error and needs to be closed.
I am scratching my head to know why on most machines it works OK and for some others it crashes...
any ideas?
thanks
Andy
I have a complex macro which transfers some worksheets from a workbook to another.
This works fine. Then my macro presents a msgbox to the user saying that "your file will now be saved".
After the user clicks OK - the following code is fired:
Code:
wb_new.Close SaveChanges:=True
With Application
.Calculation = calcst
.EnableEvents = True
.ScreenUpdating = True
.StatusBar = False
.DisplayAlerts = True
End With
Now for some reason on some machines Excel crashes when attempting to save the file.
This happens irrespective of the file sizes and the contents of the files. It just crashes saying Excel encountered an error and needs to be closed.
I am scratching my head to know why on most machines it works OK and for some others it crashes...
any ideas?
thanks
Andy