+ Reply to Thread
Results 1 to 3 of 3

Fixed Vs Dynamic Range and Delete Blank Rows Questions

  1. #1
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Fixed Vs Dynamic Range and Delete Blank Rows Questions

    Hello.
    Currently my input and output ranges are fixed so if I add even a single row, I would have to adjust all fixed ranges in VBA.
    My first question: How can i change my fixed input and output ranges into dynamic ranges? (In other words if i add another row I would not have to manually change all other ranges)

    Second question is: DeleteBlankRows has to be the last to run in RunAll macro in order to execute correctly.
    Is there a way to change it, so it does not matter if it first or last to run and it would still delete all blank rows.

    Code is below along with the file
    Thank you.

    (Notes: So I started learning VBA like a week ago, so if my questions seem silly it's cuz of that. Also, I would appreciate any feedback regarding how to improve the file to make it more dynamic or something. Thanks)


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Excelnewb1567; 08-12-2018 at 07:28 PM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Fixed Vs Dynamic Range and Delete Blank Rows Questions


    Hi !

    Just name your ranges in Excel for example like Grade9 and on VBA side [Grade9].Copy

    Or just with a blank row between grades, easier …

  3. #3
    Registered User
    Join Date
    07-20-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    11

    Re: Fixed Vs Dynamic Range and Delete Blank Rows Questions

    Thank you for your response.
    I am not sure I understood your response.

    If define 9th grade as a custom formula Grade9 and then add it to Macro

    old
    Please Login or Register  to view this content.
    new
    Please Login or Register  to view this content.
    The macro does not produce any result. Also the output range is still fixed.

    I found some examples of how to change fixed to dynamic range, but they only seem to address the inputs side.

+ 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] Need to delete blank rows from start range to next blank row
    By maym in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2018, 10:24 PM
  2. [SOLVED] VBA to Delete Rows based on Column F value for Dynamic Range
    By bilich in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2016, 03:30 PM
  3. Vba delete blank rows within range
    By vio.coman in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-24-2014, 01:57 PM
  4. Delete blank rows from a given range
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2011, 09:17 PM
  5. Delete Blank Rows-Blank Row between my data range
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2010, 02:52 PM
  6. Dynamic Range of Columns with fixed Rows
    By nms2130 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-05-2009, 05:24 PM
  7. My Dynamic Named Range brings up blank rows?!
    By LiamPotter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2008, 10:42 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