Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I was having a problem to a PasteSpecial (format only) for a few hundred
rows. I finally broke it up into smaller chunks, paste n rows at a time. Currently doing it in two rows chunks works, but takes a long time. Is there some way to determine, other than a binary search on chunk size, how many rows can be pasted at a time. Note: cells involved have conditional formatting and table formatting Note: Excel automation project in C# |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
YOu should be able to do the entire range with one command, I tested on 65,000 rows without the slightest problem, here is the block of code I used: Sub PasteFormat() [A1].Copy [A2:A65000].PasteSpecial Paste:=xlPasteFormats End Sub -- If this helps, please click the Yes button. Cheers, Shane Devenshire "Lolt" wrote: I was having a problem to a PasteSpecial (format only) for a few hundred rows. I finally broke it up into smaller chunks, paste n rows at a time. Currently doing it in two rows chunks works, but takes a long time. Is there some way to determine, other than a binary search on chunk size, how many rows can be pasted at a time. Note: cells involved have conditional formatting and table formatting Note: Excel automation project in C# |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why does Selection.PasteSpecial toggle Application.ScreenUpdating | Excel Worksheet Functions | |||
Why need to use Selection.PasteSpecial vs myRange.PasteSpecial | Excel Programming | |||
Selection.PasteSpecial with Office 2003 | Excel Programming | |||
Problem with speed of PasteSpecial for large ranges | Excel Programming | |||
selection.pastespecial problem | Excel Programming |