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: marco tortora, Kang-Ting Lee, Daniel Robertson, MacNaughton Finance, Amanda Zibell
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1917
SunnyKow: 1432
Anders Sehlstedt: 900
Purfleet: 414
Frans Visser: 346
David_Ng: 306
Hans Hallebeek: 290
lea cohen: 246
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Cassandra McGuire
Leo Bonaparte
Excel Learner
david gavi
Rick KISA
Jan Elenbaas
Ranjeet Wankhade
Sugata Maity
Karen McCarron
Amanda Zibell
Forum Stats:
Groups: 3
Forums: 24
Topics: 6880
Posts: 30158
Member Stats:
Guest Posters: 49
Members: 33702
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —