How to turn off “Microsoft Excel is waiting for another application to complete an OLE action” in VBA
※ Download: Microsoft office excel is waiting for another application to complete an ole action
Once Excel 2013 freezes, the rest of the system becomes unresponsive even after force quitting all running applications in the Task Manager. We can live with that.
It started happening on this customer email workbook. You can use a debug build with statements for logging. Hi, According to the message, I found a KB: It provides three methods, have you tried these methods? Startup Dim smartTagFile As Microsoft.
How to turn off “Microsoft Excel is waiting for another application to complete an OLE action” in VBA - By the way I have set VSTO to log by setting the environment variable, but I have not seen a log file as of yet.
Post Views: 694 Sometimes, we might need to manipulate a bunch of RTF or PDF files using Excel VBA. As number of RTF or PDF files to be combined goes larger, the chance of emerging warning message becomes larger. What is OLE OLE is Object Linking and Embedding OLE action which is a technology allowing office apps to interact with other apps. It allows an editing app Microsoft Excel in our case to send part of a document filename of Word document, for example to other apps e. Microsoft Word and then it takes back information from other apps Microsoft Word to current editing app Microsoft Excel. For example, when errors occurs when opening a word document, Excel will absolutely send such warning message. However, these approaches do not help when coming to creating a tool using VBA. Here is how to turn off it by declaring a function. If your compute is 64-bit system, please use PtrSafe attribute. If you do not add PtrSafe attribute on 64-bit system, Excel will display a Compile error like below.
When he pasted the message, he accidentally selected the entire row, which put the message in every cell in that row, rather than just the first one. Here is how to turn off it by declaring a function. I have an Excel with macros that creates a Word document. Thanks, Neha I do not have any add ins installed. Since the error may also occur because of Excel trying to interact with another application that is not responding, it is recommended to close Excel and all other applications. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office programs. PasteAndFormat 0 End Sub The macro still opens the correct document, copies the data in the correct format onto the clipboard, but then fails when trying to paste in the same format as it was copied. You shouldn't access the Excel object model on secondary threads, you may collect all the required data on the main thread and then run a secondary thread for processing the gathered data. It was a text box with the verbiage in it.