Results 1 to 5 of 5

Expanding Range Problem

Threaded View

horneblower Expanding Range Problem 08-10-2014, 05:26 AM
isskint Re: Expanding Range Problem 08-10-2014, 05:45 AM
horneblower Re: Expanding Range Problem 08-10-2014, 06:40 AM
horneblower Re: Expanding Range Problem 08-10-2014, 06:41 AM
horneblower Re: Expanding Range Problem 08-10-2014, 06:24 AM
  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Hampshire, England
    MS-Off Ver
    2010
    Posts
    6

    Expanding Range Problem

    Hopefully this is straightforward but the solution eludes me.

    I have a single column of data (actually these are daily closing stock prices).

    I am looking to produce a second column showing the maximum value of the r2 coefficient of determination using the excel LINEST function.

    The problem is that I need to look at an expanding range of data values eg (a150:a1000), (a149:a1000), (a148:a1000), etc.

    So for each step the range expands by 1 cell.

    I can do this in excel using the "height" value in the "offset" command but this doesn't seem to exist in VBA.

    How do I handle a range which expands by 1 cell each step?

    I have tried using the "cell" property as in Range(cells(150,1),cells(1000,1)) but this doesn't help as the arguments cannot be variables.

    Hopefully I'm missing the obvious.
    Last edited by horneblower; 08-10-2014 at 06:04 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Expanding the selection range
    By Priyanka_85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2013, 05:47 PM
  2. For each cell in range loop does not recognize expanding range
    By jhren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2013, 07:49 AM
  3. Conditional formatting problem with 'applies to' when expanding a range
    By gtol in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2013, 07:18 PM
  4. How to adress an expanding range
    By Kim1974 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-02-2010, 10:03 AM
  5. Auto expanding Range
    By ire.kevin@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2005, 03:05 PM

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