Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy/Paste Merged Cells via Macro is not working


I have 6 rows (from R4-R9) that include merged cells that I need to copy
in the sheet over and over in a loop. When I manually copy, it works
fine. My problem is that although the Macro below copies the 6 rows,
none of the merged cells are maintained! All the cells are individual. I
thought PasteFormats maintains the merged cell layout.


' Copy 6 rows
Rows("4:9").Select
Range("C4:C9").Activate
Selection.Copy
Rows(NewRow & ":" & NewRow + 5).Select
Range("C" & NewRow & ":C" & NewRow + 5).Activate
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
<<<<

Any tips on maintaining the Merged Cell formatting in VB?

Thanks,
Pete



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy paste non merged to merged cells [email protected] Excel Worksheet Functions 1 February 5th 09 05:25 PM
Copy/Paste into merged cells NicoleS Excel Discussion (Misc queries) 2 December 29th 08 11:48 PM
Copy/Paste formulas in merged cells Excel User 123456 Excel Discussion (Misc queries) 2 December 18th 08 07:58 PM
Copy/Cut/Paste of Merged Cells in Shared Protected Workbooks DaveyC4S Excel Discussion (Misc queries) 0 September 20th 05 01:24 PM
Copy and paste of sheets via VBA code that has merged cells John Corbin Excel Programming 3 December 19th 04 02:23 PM


All times are GMT +1. The time now is 12:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"