Hello,
I'm new to VBA and macros in excel.
I've been trying to insert a full row in a different one by using an inputbox to select the row I want to move it to.
For example, if I have a row in line 16, IŽd like to have a macro that allows me to select the whole row, cut it, and insert it by typing the row I want to move it to.
So far I have this code, but it doesnt work properly (it inserts a blank row after writing in the inputbox):
Sub Macro1()
Rows(CStr(ActiveCell.Row)).Select
Selection.Cut
Rows(Application.InputBox("Please enter row number.")).Select
Selection.Insert Shift:=xlDown
End Sub
Please, could someone help me?
Thank you
Bookmarks