Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Selection is too large - when pasting formats programmatically

Hi,

(Excel 2003)

After pasting a recordset with Range("F50").CopyFromRecordset rsData I
am trying to paste formats copied from a row above. iLastRow is the
last row of the data. Example:

iLastRow = 2000 'for testing. this is normally determined at
runtime

Sheets("Main").Range("F26:BB26").Copy

Sheets("Main").Range(Cells(50, 6), Cells(iLastRow, 54)).PasteSpecial
Paste:=xlPasteFormats, Operation:=xlNone, SkipBlanks:=False,
Transpose:=False

This works fine up to about 2000 rows. After that I get error
"Selection is too large ". What's that about?

Has anyone any other ideas on formatting a data block pasted from a
recordset? Pre-formatting the cells is not an option as
CopyFromRecordset will wipe those out, and also the depth of the range
is only known at runtime.

Thanks for any help.
Hiran





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
Programmatically pasting a Function locks macro diglas1 via OfficeKB.com Excel Programming 1 June 16th 06 11:37 PM
programmatically deselect a selection? Rich Excel Programming 4 February 24th 06 11:31 PM
Can't programmatically set a large array string to a range. Lu Excel Programming 0 January 4th 06 01:56 AM
Programmatically add shapes to a selection Edward Ulle Excel Programming 3 August 8th 05 12:17 AM
Programmatically add shapes to a selection Edward Ulle Excel Programming 0 June 1st 05 08:29 PM


All times are GMT +1. The time now is 05:43 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"