+ Reply to Thread
Results 1 to 7 of 7

Dynamic Range

  1. #1
    Registered User
    Join Date
    10-26-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dynamic Range

    Hi guys,

    I am rather new to all of this and would appreciate some help.

    I am trying to create a dynamic range, but just cant get it right:

    I want to get the autofill feature for C column stop once it has reached the same number of row entries in column A.

    ********************************************************
    Please Login or Register  to view this content.
    **********************************************************

    Can anyone help me please?

    Thanks,

    Matt
    Last edited by royUK; 10-26-2009 at 08:07 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Dynamic Range Help Please

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    I will add them this time only, be sure to read the Rules.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Dynamic Range Help Please

    Why not add the Dynamic range manually?

    Do you want =TODAY() or a fixed date?
    Last edited by royUK; 10-26-2009 at 08:11 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Range Help Please

    Maybe something like this:
    Please Login or Register  to view this content.
    Putting in =TODAY() into those cells will result in a date that will keep changing. If you want the date to stay the same the next time you open the sheet, change that last line of code to:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    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: Dynamic Range Help Please

    Hi Matt,

    One way would be to create a variable to record the number of rows in column A. Assuming the column A values start in row 2 use something like

    Please Login or Register  to view this content.
    Then substitute

    Please Login or Register  to view this content.
    Incidentally, you don't need all the .Selects. It:s more effcient just to address the ranges in question. e.g.

    Please Login or Register  to view this content.
    Untested since I only have access to Excel for Mac 2008 at the moment and in their infinite wisdom Microsoft are no longer supporting VBA with Excel!
    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.

  6. #6
    Registered User
    Join Date
    10-26-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Dynamic Range Help Please

    That worked a treat. Thanks guys!

    Matt

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Range Help Please

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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