+ Reply to Thread
Results 1 to 4 of 4

run time error 6

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    98

    run time error 6

    morning everyone hoping you could help out. below is code for extracting the x and y parameters for a spline function. i am getting a run time error 6 at the bold line, when j=7, step=32767, nstep=630.

    tips/suggestions would be incredible. please and thanks

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-11-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: run time error 6

    i changed the dimensions from integer to long. will give that a shot

  3. #3
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: run time error 6

    declare step as Long
    right now you have it as integer so you can only index up to 32,767

    Best Regards

  4. #4
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: run time error 6

    Hi

    Try Dimming these as Long instead of Integer

    Dim i As Integer, j As Integer, step As Integer
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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