+ Reply to Thread
Results 1 to 2 of 2

Code no longer producing values

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Stamford, CT
    MS-Off Ver
    Excel 2003
    Posts
    24

    Code no longer producing values

    Below is the code
    rngvol is the number of volatility days(much like a 30 day moving average is over the previous 30 days)
    volcalc is the number of rows of data in the given column

    'Statistical Volatility Calculation 1




    rngvol = Worksheets("config").Cells(32, 2)
    volcalc = WorksheetFunction.CountA(Sheets("INFO").Range("A:A"))

    Do Until Worksheets("info").Cells(rngvol + i + 1, 1).Value = ""
    For i = 1 To volcalc - rngvol + 1
    cor1 = WorksheetFunction.StDev(INFO.Range(INFO.Cells(2 + i, 4), INFO.Cells(rngvol + i + 1, 4)).Value)
    volatility1 = cor1 * Worksheets("config").Cells(38, 2).Value
    Worksheets("info").Cells(rngvol + i + 1, 8).Value = volatility1

    Next i
    Exit Do

    Loop

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Code no longer producing values

    What is INFO and how is it initialized?

    Would you please be so kind as to put your code in CODE tags?
    Entia non sunt multiplicanda sine necessitate

+ 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