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

I am trying to use fill down as part of my macro and
sometimes I receive this error message. The file can have
the same amount of data and if I run it right now, it may
be fine, but if I run the same file again later, I
sometimes get this error message. Is there around this?
I have tried to change the macro so that it runs one
column at a time, but its still no good. Maybe I have to
change that part of my macro? Here is what I have right
now. Thanks for any help.

Sheets("Original").Select
Range("B2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),10))"
Range("C2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),14))"
Range("D2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),19))"
Range("E2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),20))"
Range("F2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),22))"
Range("G2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),24))"
Range("H2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),26))"
Range("I2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),44))"


Dim b As Long
b = Range("A" & Rows.Count).End(xlUp).Row
Range("B2:I" & b).FillDown


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Selection is too large

I think you can change forulaarray to formulaR1C1. I don't see anything
that would require these formulas to be Array formulas.

Since the selection is always a single cell, I am not sure why you would get
that error.


Regards,
Tom Ogilvy



"Brian" wrote in message
...
I am trying to use fill down as part of my macro and
sometimes I receive this error message. The file can have
the same amount of data and if I run it right now, it may
be fine, but if I run the same file again later, I
sometimes get this error message. Is there around this?
I have tried to change the macro so that it runs one
column at a time, but its still no good. Maybe I have to
change that part of my macro? Here is what I have right
now. Thanks for any help.

Sheets("Original").Select
Range("B2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),10))"
Range("C2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),14))"
Range("D2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),19))"
Range("E2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),20))"
Range("F2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),22))"
Range("G2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),24))"
Range("H2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),26))"
Range("I2").Select
Selection.FormulaArray = _
"=IF(ISERROR(MATCH(RC1,'Return Info Summary'!
C1,FALSE)),"""",INDEX('Return Info Summary'!C1:C65,MATCH
(RC1,'Return Info Summary'!C1,FALSE),44))"


Dim b As Long
b = Range("A" & Rows.Count).End(xlUp).Row
Range("B2:I" & b).FillDown




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
Fill last row down for large selection? msnyc07 Excel Worksheet Functions 1 May 28th 10 03:33 PM
Fill last row down for large selection? msnyc07 Excel Worksheet Functions 1 May 27th 10 09:44 PM
Copying Formatting - 'Selection Too Large' RJB Excel Discussion (Misc queries) 2 March 11th 08 07:23 PM
Excel 2007 Selection too large PaulW Excel Discussion (Misc queries) 5 October 25th 06 07:21 AM
Selection Too Large Martin Excel Discussion (Misc queries) 1 May 20th 06 02:26 PM


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