+ Reply to Thread
Results 1 to 4 of 4

Autofill Dynamic Range (empty row in between groups)

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    egypt
    MS-Off Ver
    excel 2007
    Posts
    2

    Autofill Dynamic Range (empty row in between groups)

    Hi guys,

    I'm looking to autofill a dynamic range that has empty rows in between groups. I've attached a sample data for better understanding - i'm trying to autofill column D that has dynamic starting cells. The code below uses D2 as a dynamic range but this only fills up group A (I need group B, C, D (dynamic range) to be autofilled as well. I've been searching for a couple of days now but couldn't find something specific to solve my challenge.

    Please Login or Register  to view this content.
    TIA!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Autofill Dynamic Range (empty row in between groups)

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 08-14-2016 at 11:01 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    egypt
    MS-Off Ver
    excel 2007
    Posts
    2

    Re: Autofill Dynamic Range (empty row in between groups)

    Holy mackerel, thanks AlphaFrog!

    Works great with numbers in Column C. I was hoping to reapply the same vba on another column with text values and changed xlNumbers to xlTextValues as seen below but what it did was autofill the first group with the header instead of the first value in Column D. Am I missing something?

    Please Login or Register  to view this content.
    Thanks again!

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Autofill Dynamic Range (empty row in between groups)

    You're welcome.

    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. [SOLVED] How to create a dynamic range if the last cell is empty and the columns have empty cells
    By peter_swe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2016, 11:18 PM
  2. Replies: 0
    Last Post: 08-03-2016, 07:01 PM
  3. AutoFill Syntax and Dynamic Range
    By Tonan230 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2016, 03:40 PM
  4. [SOLVED] AutoFill down dynamic range
    By Aaron092 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2014, 11:37 AM
  5. AutoFill of Dynamic Range
    By Sevn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2013, 06:03 PM
  6. Autofill using a Macro when range is dynamic
    By CPSmurf in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 09-03-2013, 05:54 PM
  7. Autofill using Dynamic Range (Last Column) and Last Row
    By goldenr2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2011, 11:21 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