Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Error Auto Fill Method of Range Class Failed

Hello All:
I have been using this code in one other part of my spreadsheet which
has same conditions and it works for some reason when I use this in
another part of my spreadsheet it is giving me an error." Auto Fill
Method of Range Class Failed". I am a bit confused as to why this
works in one area and not in the other. The conditions are the same;
even the formula is the same different range but the same.
----------------------------------
Sub TransferPa_dwrInfo()
' Transfer information from student tab to PA-DWR Detail Tab
' Ardy 1-10-2007

Dim LastRow As Long

' InsertInfoTransferFormula_1 ' Insert the formula for transfer for the
firsr row(Module 1)
' This places the Formula on the first row C3:AH3. The formula is
'ActiveCell.FormulaR1C1 = "=INDIRECT(""'""&RC[-2]&""'!C24"")"
'This by itself works

With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
.Range("C3:AH44").AutoFill Destination:=.Range("C3:AH" & LastRow), _
Type:=xlFillDefault
End With
End Sub
--------------------------------------

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
PasteSpecial Method of Range Class Failed Error Brian C Excel Programming 5 March 30th 06 08:01 PM
Error:Paste Special method of range class failed ca1358 Excel Programming 2 December 8th 05 09:43 PM
Error 1004: Calculate Method of Range Class Failed Dan Winterton[_2_] Excel Programming 6 October 13th 05 10:19 PM
VB Error: Paste Special method of range class failed Chris Excel Programming 2 January 30th 04 12:51 PM
error 1004 Select method of Range class failed J.E. McGimpsey Excel Programming 1 September 12th 03 07:42 PM


All times are GMT +1. The time now is 06:41 AM.

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"