
Erica Charteris
New Member
Members

Forum Posts: 2
Member Since:
September 18, 2018
September 18, 2018

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: John Kobiela, Sue Hammond, Malcolm Sawyer
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Forum Stats:
Groups: 3
Forums: 24
Topics: 6355
Posts: 27792
Member Stats:
Guest Posters: 49
Members: 32324
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —
