ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Locking Up (https://www.excelbanter.com/excel-programming/365384-locking-up.html)

bodhisatvaofboogie

Locking Up
 
Now When I use this formula:

Application.DisplayAlerts=False

Windows("Book1").Close SaveChanges:=False
Windows("Book2").Activate
Cells.Select
Selection.Copy
Windows("Book2").ActivatePrevious
Range("A1").Select
ActiveSheet.Paste
Application.DisplayAlerts = True

Windows("Book2").Close SaveChanges:=False

everything works, BUT there is an alert that follows the closing of Book2.
SO, I went ahead and figured I would move the Application.DiplayAlerts=True
after the Book2 closing to avoid the alert. However, when I do that
everything just stops and locks up, forcing me to close and restart. What
gives?!?!?!?!



All times are GMT +1. The time now is 03:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com