+ Reply to Thread
Results 1 to 2 of 2

Autofill Macro not working

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    63

    Autofill Macro not working

    Dear Friends,
    Does the worksheet number given in the code refers to sheet number under VBA project. (kindly refer to screenshot).Error.jpg
    I copied a code from another website, but is not working.

    I have a code that is in sheet6 (Cost Center Owner)

    I want the formula in range A6:C6 and F6:G6 to be copied down to A6:C5000 and F6:G5000. The purpose of this code is to update the formula up to 5000 rows if any rows is deleted / inserted by the user.

    The code below is not working. Kindly let me know how to fix this code.

    Please Login or Register  to view this content.
    Thanks,
    Rahul

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Autofill Macro not working

    What you are referring to are the sheet codenames, which can be used like
    Please Login or Register  to view this content.
    The sheet index
    Please Login or Register  to view this content.
    is the position of the sheet in the workbook.
    So the left most sheet will be sheets(1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro autofill stops working at Column AA? (method global failed)
    By Excel2010101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-25-2014, 06:48 PM
  2. [SOLVED] Very small AutoFill macro showing "AutoFill methode of range class failed" why ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 10:21 PM
  3. [SOLVED] autofill not working
    By stubyh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2013, 12:32 PM
  4. Macro for Autofill removes header info when there is no data to autofill
    By esturan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:42 PM
  5. Autofill not working
    By rdhull in forum Excel General
    Replies: 4
    Last Post: 10-28-2011, 04:05 PM
  6. Autofill down is not working???
    By rmurray in forum Excel General
    Replies: 1
    Last Post: 05-20-2009, 02:50 PM

Tags for this Thread

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