starfox_64
New Member
- Joined
- Aug 3, 2020
- Messages
- 1
- Office Version
- 2016
- Platform
- Windows
Here's the deal. When I click on the "Backlog" button, cell E27 changes to a new number. I want the value of E27 to be copied to cell E35 before it changes. And from there to E36 when I click on "Backlog" again, etc etc. This way I can see the historical trend as E27 changes throughout the day.
This is what I have so far, but it simply pastes E27 to E35 an infinite amount of times.
Sub ChartSectionCopy()
Dim i As Long
For i = 1 To Worksheets("Chart Names").Range("E27").Value
Range("27").Select
Selection.Copy
Range("E35").Offset(8, 0).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Next i
End Sub
Does anyone know how to fix this?
This is what I have so far, but it simply pastes E27 to E35 an infinite amount of times.
Sub ChartSectionCopy()
Dim i As Long
For i = 1 To Worksheets("Chart Names").Range("E27").Value
Range("27").Select
Selection.Copy
Range("E35").Offset(8, 0).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Next i
End Sub
Does anyone know how to fix this?