Written by Allen Wyatt (last updated May 4, 2026)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and 2021
Henri would like to copy the data contained in a source cell to a destination cell without leaving the current position on the worksheet. In other words, he would like to copy from cell A1 to cell AE459 without leaving his current position at V104. He wonders if such an edit is even possible.
Of course, the obvious approach to this is to simply put the formula =A1 into cell AE459. Then, Excel takes care of making sure that the two cells are equal. You could also open a second window on the worksheet and take care of the copying within that window; the cell selected in the original window (cell V104) would remain unchanged.
If you actually want to do a "copy" operation, though, without opening a second window, then you'll need to resort to a macro.
Copying from one cell to another within a macro is rather easy. For instance, the following example will copy the contents of cell A1 to AE459 without affecting whatever cell you currently have selected:
Sub CopyCell1()
' Copy the cell value to destination cell
Range("AE459") = Range("A1")
End Sub
If you want to copy a formula that is in cell A1 to the destination, then you need to modify how the copy is done. Specifically, you need to use the Copy method using the destination range as a parameter.
Sub CopyCell2()
' Copy the relative formula to destination
Range("A1").Copy Range("AE459")
End Sub
Of course, a drawback of these macros is that they are static—they only copy from cell A1 to cell AE459. If your copying needs can vary, you may want to consider performing the task in the VB Editor's Immediate window. Just pop open the editor and type the single line from the appropriate macro into the window. The copying is then done and you can close the editor, all without affecting whatever cell you had selected.
Another way to provide a bit of flexibility into the source and destination for the macro is to have it (the macro) prompt the user for the source and destination. The following macro takes this approach.
Sub CopyCell3()
Dim SrceCell As String
Dim DestCell As String
SrceCell = InputBox("Copy From Cell ...")
DestCell = InputBox("Copy To Cell ...")
Range(DestCell) = Range(SrceCell)
End Sub
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9949) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and 2021.
Dive Deep into Macros! Make Excel do things you thought were impossible, discover techniques you won't find anywhere else, and create powerful automated reports. Bill Jelen and Tracy Syrstad help you instantly visualize information to make it actionable. You’ll find step-by-step instructions, real-world case studies, and 50 workbooks packed with examples and solutions. Check out Microsoft Excel 2019 VBA and Macros today!
If you copy a cell that contains a reference to external data, do you get an error? It could be due to the complexity of ...
Discover MoreWouldn't it be great if you could have Excel display some text in a cell only when that cell is empty? Unfortuantely, ...
Discover MoreThe fill capability of Excel is quite handy, allowing you to easily fill a range of cells based on the content in a ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-05-04 15:32:17
jamies
Default is .Value
which can do modification of the data -
Looks like it could be a number - well float again !
Looks to be currency, or format of the source/destination set as currency -
Well (bankers ?) round to 2 decimal places and add the "$" character
then paste that as a text string -
AH no sumif() they are strings in the format "0.00" beginning with a "$" So - OK,=TEXT(.Value,"$0.00") , not numbers
Avoid that - be specific and use .Value2
looks like a date - that's a float them ! and format as a date ...
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 © 2026 Sharon Parq Associates, Inc.
Comments