vinchiecent
New Member
- Joined
- Jan 23, 2014
- Messages
- 3
Hi, I'm new in using macro programming, I just want to know if it is possible to add the cell which is in formula to another sheets, I successfully pasting the Total Amount to other sheets, but my problem is that how if I add a new row to add another amount without copying from the stuck cell let's say i copied row E24 which the total amount is 2000 and when I inserted a new row, 2000 goes down to E25 and I added an amount of 3000 to E24 so the total must be 5000 but in other sheets it still copied to E24 which is 3000.
This is my macro programmed.
Sub addLogs()
Range("E23").Select
Selection.Copy
Sheets("Logs").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Logs").Select
Range("C3").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
End Sub
Thanks in advance
This is my macro programmed.
Sub addLogs()
Range("E23").Select
Selection.Copy
Sheets("Logs").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Logs").Select
Range("C3").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
End Sub
Thanks in advance