Hi Everyone,
How would one modify the code below to paste to a row in a different sheet for example copy Row 2 in Sheet "Cost"
and Paste/Insert in Row 5 in Sheet "Profit"?
Thank you,
How would one modify the code below to paste to a row in a different sheet for example copy Row 2 in Sheet "Cost"
and Paste/Insert in Row 5 in Sheet "Profit"?
Thank you,
VBA Code:
Sub v()
Dim c, d
c = Application.InputBox("Enter the row number to be copied.", Type:=1)
If TypeName(c) = "Boolean" Then Exit Sub
d = Application.InputBox("Enter the row number where to insert.", Type:=1)
If TypeName(c) = "Boolean" Then Exit Sub
Rows(Val(c)).Copy
Rows(Val(d)).Insert
Application.CutCopyMode = False
End Sub