Guest
Guest
Guests
Hello
I am wanting to copy and paste a range per the script below. None of the cells I am copying & pasting from/to are merged.
Sheet4.Range("N6:U7").Copy Range("L6:S7")
Sheet4.Range("N9:U10").Copy Range("L9:S10")
Sheet4.Range("N12:U12").Copy Range("L12:S12")
The first line works but the macro stops on the second line and gives the following run-time error:
run-time error '1004'
We can't do that to a merged cell.
To get past this, I enter into cells N9:S10 and re-run the macro which then works.
Can someone please tell me how to get around this error without unmerging the cells above and below?
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 919
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 339
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Michael Denton
Nick Pascal
David Webb
Johannes Bruentrup
John Jay
Larry Silverman
David Rousseau
Melinda Heidemann
Jose Fuentes
Abigail Hernandez
Forum Stats:
Groups: 3
Forums: 25
Topics: 7072
Posts: 30993
Member Stats:
Guest Posters: 49
Members: 34469
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —