I'm running some Excel macros that take data from several different excel files and combine them. When the macro closes a file it gives me a prompt that there is information on the clipboard, and asks me if I want to use it later. I have never needed this information on the clipboard, EVER. So as far as I know I have two choices, sit here while the macro is running and continually click NO (up to 20 times with some of these macros), or use the following statement in the macro to close the file for me:
Application.DisplayAlerts = False
Workbooks("file.xls" & sName).Close SaveChanges:=False
Application.DisplayAlerts = True
which works fine, except it takes FOREVER to close the file (forever being anywhere from 20 seconds to over a minute). What I'd like to do is completely remove the clipboard function, or, find a different command to close a file without waiting so long. Any help?
Application.DisplayAlerts = False
Workbooks("file.xls" & sName).Close SaveChanges:=False
Application.DisplayAlerts = True
which works fine, except it takes FOREVER to close the file (forever being anywhere from 20 seconds to over a minute). What I'd like to do is completely remove the clipboard function, or, find a different command to close a file without waiting so long. Any help?