+ Reply to Thread
Results 1 to 6 of 6

Last row automatically equals fill down range.

  1. #1
    Forum Contributor
    Join Date
    10-16-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2010 PC
    Posts
    137

    Last row automatically equals fill down range.

    Hey,

    I've recorded this macro that requires me to fill down functions to the last row with data. Instead of adjusting the Macro manually to fit the data set, is there something I can insert in this code to make the range "B2:F35" automatically change to "B2:F'last row'"?

    I was also trying to have a text box pop up and ask for the number of rows I wanted to work with, but I wasn't successful there.

    Please Login or Register  to view this content.
    Any help is appreciated and thanks in advance.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Last row automatically equals fill down range.

    Hi, Trevasaurus,

    how about this approach where the range is determined from entries in Column A:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    10-16-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2010 PC
    Posts
    137

    Re: Last row automatically equals fill down range.

    Thanks a lot HaHoBe, that was exactly what I was looking for.

  4. #4
    Forum Contributor
    Join Date
    10-16-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2010 PC
    Posts
    137

    Re: Last row automatically equals fill down range.

    Hey @HaHoBe,

    Quick question. I'm trying to apply that code to other sheets in my workbook and want to use the row count
    From Row A in another sheet. I'm having trouble with the syntax to do this. Can you help me out here?

    Please Login or Register  to view this content.
    This formula is being applied to an active sheet "Compare" but I want to use the row count from either sheet "Varasto" or "FactSet"

    Thanks so much.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Last row automatically equals fill down range.

    Hi, Trevasaurus,

    it isnīt really clear to me what you are trying to achieve as I do not know the workbook but maybe try
    Please Login or Register  to view this content.
    Ciao,
    Holger

  6. #6
    Forum Contributor
    Join Date
    10-16-2012
    Location
    Brooklyn
    MS-Off Ver
    Excel 2010 PC
    Posts
    137

    Re: Last row automatically equals fill down range.

    Hey Holger,

    Sorry for that lack of clarity, but that was what I was looking for.
    I was trying to target the 'Varasto' sheet with activesheet and other stuff which wasn't working.

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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