+ Reply to Thread
Results 1 to 3 of 3

Fill Down not Working

  1. #1
    Registered User
    Join Date
    04-05-2024
    Location
    Washington, USA
    MS-Off Ver
    Office 365
    Posts
    16

    Fill Down not Working

    I have a VBA macro that is supposed to add a formula to a cell and then fill it down the column to row 1001 so that it has 1000 instances. The formula itself is working fine, but the fill down portion is not working. The macro is set up to add a header to the last column on the right and then put the first formula in the second row of that column.

    Please Login or Register  to view this content.
    This portions establishes what the last column to the right is.

    Please Login or Register  to view this content.
    This portion inputs the formula.

    Please Login or Register  to view this content.
    This portion is where I run into issues. When I run the code, the error message is 1004, AutoFill method of Range class failed. If I try to run the entire macro itself, it doesnt work, but if I run it line by line, it does seem to work. Any help would be greatly appreciated as I am still very new to VBA, but took on a bigger project. I tried to include the file, but it was too large to do so, so I included all of the code for the userform in hopes that it helps. Thank you guys!
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Fill Down not Working

    Hi Jonathan,

    A hint in writing your code would be to use Sheet Codenames:
    Watch this:
    https://www.youtube.com/watch?v=DxIzTKgchJ8

    We would need to see a sample workbook to do much else with your problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,298

    Re: Fill Down not Working

    You might find it easier to just use the column number:

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

+ 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. [SOLVED] Fill Series not working
    By pschristmas in forum Excel General
    Replies: 7
    Last Post: 01-19-2021, 09:28 AM
  2. [SOLVED] Auto Fill not working
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2019, 08:28 PM
  3. Fill handle not working
    By PaMarn in forum Excel General
    Replies: 3
    Last Post: 04-01-2017, 10:45 PM
  4. [SOLVED] fill between two date according to working day and non working day , holidays
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-24-2017, 01:39 PM
  5. Auto fill / flash fill not working with formulas?
    By mhorga in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-18-2016, 12:54 PM
  6. 'Fill Down' stopped working
    By verasa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2014, 04:43 AM
  7. Replies: 1
    Last Post: 07-13-2007, 10:59 AM

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