+ Reply to Thread
Results 1 to 2 of 2

How to make a Dynamic Range with Offset

  1. #1
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    520

    How to make a Dynamic Range with Offset

    Dear all guru

    I have made a serach table using the advance filter
    However, i do not know how to make a dynamic range for the "List Range"
    Appreciate any help

    Eric
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How to make a Dynamic Range with Offset

    If you want to make a dynamic range in column A, for example.
    Dim rng As Range
    With ActiveSheet
    Please Login or Register  to view this content.
    Assumes data begins in cell A2.
    The 1 in the 'Cells(Rows.Count, 1).End(xlUp) statement indicates the column number and can also be designated using the alpha characters in quotes, e.g. "A".
    This syntax effectively goes to the bottom of the column and comes back up until it finds a cell with data, so if you add or delete rows it will automatically adjust to the size of the data range.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

+ 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] Offset Dynamic Named Range
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-23-2014, 06:35 AM
  2. Dynamic Range using Offset, range not found for Pivot
    By GoneBaja in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2012, 09:19 AM
  3. dynamic range and offset
    By ramzesm in forum Excel General
    Replies: 2
    Last Post: 03-26-2012, 03:17 PM
  4. Named dynamic range using offset in VBA
    By craigmcewan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2011, 05:11 AM
  5. Dynamic Range using Offset and CountIF
    By mark_jam3s in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2008, 11:43 AM
  6. [SOLVED] dynamic range / offset
    By Jeff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2005, 12:21 PM
  7. OFFSET problems in dynamic range
    By cabybake in forum Excel General
    Replies: 4
    Last Post: 02-18-2005, 10:06 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