Results 1 to 10 of 10

Thread: Calculations Incorrect & Error

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    160

    Calculations Incorrect & Error

    I did the caculations of the grid and I'm getting weird resutls.
    I press the calc button and numbers appear but the calculations are incorrect
    and the numbers appear in the column heading.

    I get an run-time error 381 Subscript out of range.

    I've been using code like the below to calc the columns

    The calculations are returning numbers like I
    1.11794274231176e+116 and the column heading changed to 25 from a column label.

    Why is it that If I keep pressing the calc button the calc changes?

    VB Code:
    1. With MSFlexGrid1
    2.      .Redraw = False
    3.      For x = 0 To .Rows - 1
    4.          .TextMatrix(x, 5) = (Val(.TextMatrix(x, 9)) * 6.5) + 0.1 * (Val(.TextMatrix(x, 10)))
    5.           Next
    6.        .Redraw = True
    7.         End With


    Please help. Thanks!
    Last edited by Cheyenne; Sep 11th, 2001 at 06:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width