Applies ToExcel for Microsoft 365 Excel 2024 Excel 2021 Excel 2019

Last Updated: January 18, 2022

ISSUE

When an add-in or any extensibility or automation component calls into Excel Object Model to perform copy/paste operations in parallel instances of Excel, an unexpected error or crash may occur. 

SCENARIO

You have an add-in that generates Excel reports by copying many rows/cells from a template. If you run two instances of Excel to generate multiple reports in parallel, Excel may error out or crash.

STATUS: WORKAROUND

  • If possible, use other APIs that do not interact with clipboard, such as get and set values using array. However, if formatting also needs copied, this may not be an option.

  • Avoid running the task that uses clipboard APIs in multiple Excel instances/processes in parallel.

More Resources

Icon Experts (brain, gears)

Ask the experts

Connect with experts, discuss the latest Excel news, updates, and best practices, and read our blog.

Excel Tech Community

Icon Community

Get help in the community

Ask a question and find solutions from Support Agents, MVPs, Engineers, and other Excel users.

Excel Forum on Answers

Icon feature request (light bulb, idea)

Suggest a new feature

We love reading your suggestions and feedback! Share your thoughts. We're listening.

Provide feedback

See Also

Fixes or workarounds for recent issues in Excel for PC

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.