Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Can't Copy Data between Workbooks.
Written by Allen Wyatt (last updated March 22, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Neil has Excel installed on several PCs in his office. On most of these he can copy data from one workbook to another workbook with no problems. On one of the PCs, although he can copy data from one worksheet to another worksheet in the same workbook, Neil cannot copy data to a different workbook.
More than likely this has to do with how the two workbooks are opened on the problem machine. If you open the workbooks in two different instances of Excel, then copying and pasting between instances is not the same as when the workbooks are opened in the same instance. If you open the two workbooks in different instances of Excel, then when you go to paste information into the target workbook, you get the results of whatever formulas you are copying instead of the original formulas. (This is just one example; there are other pasting differences as well.)
The solution is to make sure that the workbooks are opened in the same instance of Excel. The easiest way to do this is to make sure that once the first workbook is open, you open the second workbook by using the Open dialog box within Excel. If you, instead, use the Windows Start menu or a Desktop icon to open the second workbook, you are opening a second instance of the program.
If this doesn't solve the problem for you, then you should make sure that there is no macro running in the target workbook or worksheet when it is activated. Look for code in the ThisWorkbook module and any other worksheet module in the target workbook's VBA project. If you do find a macro there, then it could be that the macro is altering what is in the Clipboard or clearing it out entirely. You'll need to do some detective work to figure out if this is the case.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8034) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Can't Copy Data between Workbooks.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Sometimes getting the right thing to show up in a cell can be a bit tricky when working with dates. If you enter a year ...
Discover MoreWe all make mistakes. Fortunately, Excel makes it rather easy to undo your makes, right after you make them.
Discover MorePutting the contents of two cells together is easy. Putting together the contents of lots of cells is more involved, as ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2023-03-23 04:11:48
Kiwerry
Some off-the-cuff comments on Philip Andrew's solution which may be useful:
The method described will work quite happily without the detour through Word: Click on a cell then get into edit mode by clicking in the formula bar or hitting F2. Mark all of the text and copy it (for example, Ctrl-A then Ctrl-C). Press Enter to leave the cell, change to the workbook where you want to use the formula, click on the target cell and get into edit mode, then paste and press enter. The formula should be there and work as it did in the source cell.
Caveats:
References to other cells are NOT automatically changed as they would be if you were copying and pasting within a single Excel instance. Either check the references carefully before using the formula in the target workbook or make sure that the source cell and the target cell have the same address (for example, if you copy something like =A25+B25 from cell C25 and paste it into any cell other than C25 in the target workbook, the results may be different from what you expect because the formula still says =A25+B25 and doesn't refer to the neighbouring cells).
You are only copying the formula; formatting will not be copied.
You can only copy one formula at a time.
The method can be useful, despite the caveats.
2020-08-22 15:53:35
Philip Andrew
I might have discovered another workaround for copy-pasting a formula from one wb to another. I copied the source formula, hit Enter to close the cell I just copied from, then pasted the formula into a new blank MS Word document. I then did a Ctrl-A in the Word doc to select all the text I just pasted there, then hit the Clear All Formatting icon in my QAT, copied the still selected format-clear formula text in Word, and pasted it into the cell in the target wb. Presto, It worked!
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments