+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Subscript out of range

  1. #1
    Registered User
    Join Date
    05-26-2011
    Location
    Bandung, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Subscript out of range

    help me, i can't fix this problem,
    i want to arrange some number (small array) into one big array
    there's column and row number located above and beside the small array [km], that is location of number from small array at big array.
    i tried with smaller one (asdwx.xlsm) 10x10, it works, but when i try (help.xlsm), 204x204 it doesn't work.
    it said error '9' subscript out of range.
    idk why.
    thanks
    Attached Files Attached Files
    Last edited by ususgoreng; 05-26-2011 at 06:18 PM.

  2. #2
    Registered User
    Join Date
    05-26-2011
    Location
    Bandung, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Subscript out of range

    help me

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Subscript out of range

    ususgoreng,

    Alright, first of all, your variable names should be more than just a or b. They should accurately describe the information being assigned to them. It would also be a good idea to dim your variables to the appropriate type so that they don't take as much memory and are easier to reference. I updated your code, and it now runs successfully and faster. (Although I didn't optimize it)
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  4. #4
    Registered User
    Join Date
    05-26-2011
    Location
    Bandung, Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Subscript out of range

    wow, that's work.
    thank you very much man.



    admin : sorry i double post this thread..

+ 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