I need help!
I have a macro that copies a specified row and pastes it one below the last active row.
The columnX is basically a counter (starting from 1).
I'm lookingfor a VBA command to add to my macro. The command will take the last active cellin column X, copy it and paste it one cell below and perform an addition of one (+1 =increment).
I have not been able to define that command. Do you havea solution?
Thank you for your help!
M.
Here is myexisting macro to copy paste;
Private SubCommandButton4_Click()
myCheck = MsgBox("edit line?", vbYesNo)
If myCheck = vbNo Then Exit Sub
Application.ScreenUpdating = False
ActiveCell.EntireRow.Copy
ActiveSheet.Range("S65536").End(xlUp).Offset(1,0).EntireRow.Select
Selection.Insert
Range("Q" & (ActiveCell.Row)).Value = Date
Application.ScreenUpdating = True
End Sub
I have a macro that copies a specified row and pastes it one below the last active row.
The columnX is basically a counter (starting from 1).
I'm lookingfor a VBA command to add to my macro. The command will take the last active cellin column X, copy it and paste it one cell below and perform an addition of one (+1 =increment).
I have not been able to define that command. Do you havea solution?
Thank you for your help!
M.
Here is myexisting macro to copy paste;
Private SubCommandButton4_Click()
myCheck = MsgBox("edit line?", vbYesNo)
If myCheck = vbNo Then Exit Sub
Application.ScreenUpdating = False
ActiveCell.EntireRow.Copy
ActiveSheet.Range("S65536").End(xlUp).Offset(1,0).EntireRow.Select
Selection.Insert
Range("Q" & (ActiveCell.Row)).Value = Date
Application.ScreenUpdating = True
End Sub
Last edited: