Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copying an entire row of formulas
How do I copy all *forumlas* (without values) in row 10, for example, to
row 20? In other words, if the forumla for cell W10 is "=+S10+U10", then the when I copy the entire row of formulas to row 20, the formula for W20 should be "=+S20+U20", *not* "=S10+U10" Thanks! Eliezer --- Message posted from http://www.ExcelForum.com/ |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copying an entire row of formulas
Turn on the macro recorder
Select row 10 select copy go to row 20 and place cursor in far left cell of row select paste special formulas turn off recorder go to macro editor and see the code Glen -----Original Message----- How do I copy all *forumlas* (without values) in row 10, for example, to row 20? In other words, if the forumla for cell W10 is "=+S10+U10", then the when I copy the entire row of formulas to row 20, the formula for W20 should be "=+S20+U20", *not* "=S10+U10" Thanks! Eliezer --- Message posted from http://www.ExcelForum.com/ . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copying an entire row of formulas
I did that but it kept copying over the numbers. In the end, I figure
this out: For columnIterator = 1 To Columns("EI" & ":" & "EI").Column If Cells(10, columnIterator).HasFormula Then Cells(currentRow, columnIterator).FormulaR1C1 Cells(10, columnIterator).FormulaR1C1 End If Next Thanks! Elieze -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conditional copying of entire row across worksheets | New Users to Excel | |||
Copying entire worksheets | Excel Discussion (Misc queries) | |||
Copying an Entire row using an IF Statement | Excel Programming | |||
Copying an Entire row using an IF Statement | Excel Programming | |||
Macro for copying entire raw | Excel Programming |