Share via

Copy paste VBA

Adrisan 1 Reputation point
2021-10-22T22:02:52.907+00:00

I am trying to paste to a defined object but it is not working, any help please!

Sub Macro_RBC()
Dim rng As Range
Set rng = Worksheets("RBC OA").Range("B1").End(xlDown).Offset(1, 0)

Range("A1:D10").Copy _
Destination:=Worksheets("RBC OA").rng

Developer technologies | Visual Basic for Applications
0 comments No comments

1 answer

Sort by: Most helpful
  1. Viorel 126.9K Reputation points
    2021-10-23T04:35:32.397+00:00

    Try this:

     . . .
    Range("A1:D10").Copy Destination:=rng

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.