So today I tried to select a row from an Excel file then paste it in another row (in another Excel file)
I've searched the web and Stack Overflow and nothing helped me. I don't know anything about VB and I don't have time because I need this by Saturday and almost everything is vague for me but this is my code:
Sub main()
Dim rangeSrc As range, range As range
Set rangeSrc = Application.InputBox("Select src Range", "select src range")
Set range = Application.InputBox("select des range", "select des range")
rangeSrc.Select
Selection.Copy
range.Select
ActiveSheet.Paste
End Sub
There is what I have gathered form all around the web .
The first problem is that it keeps giving me OBJECT REQUIRED
error.
The second problem is that if (in the future) I want to add a condition to selecting rows, what should I do?
Thanks