Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default PasteSpecial (format only) Selection is too large

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default PasteSpecial (format only) Selection is too large

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
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
Why does Selection.PasteSpecial toggle Application.ScreenUpdating OssieMac Excel Worksheet Functions 2 August 4th 09 12:05 AM
Why need to use Selection.PasteSpecial vs myRange.PasteSpecial [email protected] Excel Programming 4 June 25th 07 05:34 PM
Selection.PasteSpecial with Office 2003 Andreas Szabo Excel Programming 2 November 3rd 05 02:17 PM
Problem with speed of PasteSpecial for large ranges xlb[_2_] Excel Programming 4 February 20th 05 12:18 PM
selection.pastespecial problem rleonard[_2_] Excel Programming 1 May 31st 04 10:56 AM


All times are GMT +1. The time now is 03:24 PM.

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

About Us

"It's about Microsoft Excel"