Results 1 to 3 of 3

Very small AutoFill macro showing "AutoFill methode of range class failed" why ?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Very small AutoFill macro showing "AutoFill methode of range class failed" why ?

    below macro showing "AutoFill methode of range class failed" Run time error "1000":.
    Sub autofill()
    Sheets(1).Range("D2:E10000").Copy Sheets(2).Range("B2")
    Sheets(1).Range("M1").Copy Sheets(2).Range("D1")
    lastrow = Sheets(2).Range("C" & Rows.Count).End(xlUp).Row
    Sheets(2).Range("D1").AutoFill Range("D1:D" & lastrow), xlFillCopy
    End sub
    it works very well , after opening the macro module & press F8. but while i am going to use macro button it doesn't work .i get above read
    color error in the last macro code(which is marked as red color)
    Last edited by nur2544; 02-28-2013 at 10:12 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1