+ Reply to Thread
Results 1 to 8 of 8

Help with filldown

  1. #1
    Forum Contributor
    Join Date
    01-20-2022
    Location
    London
    MS-Off Ver
    2010
    Posts
    101

    Help with filldown

    Hey everyone, I have attached the sample workbook, can someone help me identifying why it does not fill down the formula on "Management" sheet until the end of the list on sheet2?
    The last 10 or so names are not appearing?


    Or if there is any other quicker and easier way to link those cell in the Management sheet with the list on sheet1?
    The Management sheet is basically a mirror of that list, however the list on sheet1 changes often and therefore I don't want any REF! appearing on Management sheet and also I want to be able to filter it sometimes so I don't want to just put a formula and fill down until the end otherwise when filtering I will have loads of empty cells at the top.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Help with filldown

    What's the status of the other thread you started?
    Are you still waiting for something?
    https://www.excelforum.com/excel-pro...-met-then.html
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Contributor
    Join Date
    01-20-2022
    Location
    London
    MS-Off Ver
    2010
    Posts
    101

    Re: Help with filldown

    Yes that was solved skywriter, thanks for the reminder, marked.

    This I haven't been able to...

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Help with filldown

    The code you wrote says to fill from cell A10 to the number of rows on the other sheet which is 81.
    So your code is saying fill down from A10:A81, so it's doing what you are telling it to do.
    Last edited by skywriter; 12-22-2022 at 08:19 PM. Reason: Typo.

  5. #5
    Forum Contributor
    Join Date
    01-20-2022
    Location
    London
    MS-Off Ver
    2010
    Posts
    101
    Thanks skywriter.
    That’s the issue then, because on the Management sheet the first row from where the formula then fills down is A10 and not A2 like on the table of sheet2?

    I can’t change that, so I want it to be able to fill down the formula to the last used row on the table on sheet2 instead of stopping on A72.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: Help with filldown

    Would the following not do?
    Clear Managemet sheet, copy Sheet2 data into Management sheet. If columns in different order, no problem.
    If changes on Sheet2 (you called it Sheet1 but I assume that's a slip of the keyboard finger), code will clear Management sheet and copy data from Sheet2 into Management sheet again.
    Or am I thinking to simple?
    Experience trumps academics every day of the week and twice on Sunday.

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Help with filldown

    This code triggered de-activate event of sheet2.
    When select other sheet, it copies current list of sheet 2 then overwrite to sheet Management

    PHP Code: 
    Option Explicit
    Private Sub Worksheet_Deactivate()
    Dim lr&
    lr Cells(Rows.Count"A").End(xlUp).Row ' last row with data of column A
    Application.ScreenUpdating = False
    With Sheets("Management")
        .Range("A10:C10000").ClearContents
        Range("A2:B" & lr).Copy
        .Range("A10").PasteSpecial Paste:=xlPasteValues
        Range("D2:D" & lr).Copy
        .Range("C10").PasteSpecial Paste:=xlPasteValues
        .Range("A9").Select
    End With
    Application.ScreenUpdating = True
    End Sub 
    Attached Files Attached Files
    Quang PT

  8. #8
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Help with filldown

    Please Login or Register  to view this content.

+ 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. VBA Filldown or Autofill
    By jstuart2022 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2022, 02:47 AM
  2. [SOLVED] Filldown and AutoFill
    By k64 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2017, 12:05 PM
  3. Trying to Filldown
    By aavins73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2014, 11:14 PM
  4. [SOLVED] VBA for filldown
    By rarementality in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2014, 06:26 AM
  5. Filldown Macro
    By harignz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2013, 02:18 AM
  6. Filldown? & Cmb?
    By Jennifer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2006, 11:35 PM
  7. Macro Filldown
    By Hirsch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2005, 02:05 PM

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