Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have no idea what you're trying to do, but here's a guess.
Sub test() Dim ws As Worksheet Dim lastrow As Long Set ws = Worksheets("Sheet1") lastrow = ws.Cells(Rows.Count, "A").End(xlUp).Row Dim i As Long For i = 1 To lastrow With ws .Range("B" & i).Formula = "=" & .Range("B" & i).Value & "+ A" & i End With Next End Sub -- Gary "Nick" wrote in message ... How do I add one column to a second without deleting the original value in the second column. i am trying to get an accumulative value. The value in the first column will change constantly. Thanks, Nick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting every nth through every nth row in a column | Excel Discussion (Misc queries) | |||
Deleting nth row or column | Excel Discussion (Misc queries) | |||
Deleting a column | Excel Discussion (Misc queries) | |||
Deleting cells in a column ref a different column | Excel Programming | |||
Deleting a row by a column value | Excel Programming |