+ Reply to Thread
Results 1 to 2 of 2

Need to change var code to a dynamic range

  1. #1
    Forum Contributor
    Join Date
    03-30-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Excel 2013
    Posts
    274

    Need to change var code to a dynamic range

    Hi Guys once again I am seeking your help.
    I have this code which uses a range hard coded
    I wish to be able to make it dynamic as the rows in column A change daily
    Please Login or Register  to view this content.
    I tried but really need your help
    Thanks in Advance
    Last edited by Leith Ross; 01-07-2017 at 06:11 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need to change var code to a dynamic range

    Why not just create a dynamic range name in Excel and use the name in your macro?

    Not entirely sure what your range is but in extremis if it were a varying number of rows and column with A1 as the topmost left cell then

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Change to dynamic range
    By VBAtor in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-12-2015, 06:01 PM
  2. [SOLVED] My code is not dynamic; it has a pre-defined range. Possible to change code?
    By mick0005 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-20-2015, 10:23 PM
  3. Vba: Find a percent change using a dynamic range
    By surePac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2014, 06:38 PM
  4. [SOLVED] Change Static Range of Formula to Dynamic Range
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-24-2014, 10:15 AM
  5. How to change X axis range using dynamic ranges
    By james444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 04:23 PM
  6. Change code so that Dynamic ranges include sheet name
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2011, 03:51 PM
  7. Pivot dynamic range change
    By arnab0711 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2010, 03:35 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